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)
committerTony Luck <tony.luck@intel.com>
Thu, 19 Nov 2020 20:53:55 +0000 (12:53 -0800)
commit83ff51c4e3fecf6b8587ce4d46f6eac59f5d7c5a
tree4c5e5bde9665e70e840e78355a024c6ac40dc695
parent41545aabff1ef71f83efe56dd4fec91a7fe65027
EDAC/i10nm: Use readl() to access MMIO registers

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>
drivers/edac/i10nm_base.c