EDAC/i10nm: Use readl() to access MMIO registers
authorQiuxu Zhuo <qiuxu.zhuo@intel.com>
Tue, 17 Nov 2020 12:49:51 +0000 (20:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:54:11 +0000 (11:54 +0100)
commit3a881be1b4e9f7485de4bc1a2f5968763df8a789
treeb4a58966ab3fe0588764bbc7e89a847de757fa55
parentd03b710d8eae5479a4c24cfadbca4bdb6bd05328
EDAC/i10nm: Use readl() to access MMIO registers

commit 83ff51c4e3fecf6b8587ce4d46f6eac59f5d7c5a upstream.

Instead of raw access, use readl() to access MMIO registers of
memory controller to avoid possible compiler re-ordering.

Fixes: d4dc89d069aa ("EDAC, i10nm: Add a driver for Intel 10nm server processors")
Cc: <stable@vger.kernel.org>
Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/edac/i10nm_base.c