]> git.baikalelectronics.ru Git - kernel.git/commit
EDAC/synopsys: Read the error count from the correct register
authorShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Thu, 14 Apr 2022 10:28:13 +0000 (15:58 +0530)
committerBorislav Petkov <bp@suse.de>
Thu, 14 Apr 2022 12:44:49 +0000 (14:44 +0200)
commit74d1c05517815ff75534f3d82b553c486cd0a530
tree510e3377b6b83e8d547f587d7af73988121c369a
parentef8e7cd3bfb3e514a5772f2c5874cf0913238d68
EDAC/synopsys: Read the error count from the correct register

Currently, the error count is read wrongly from the status register. Read
the count from the proper error count register (ERRCNT).

  [ bp: Massage. ]

Fixes: 97471c9b8e69 ("EDAC, synopsys: Add ECC support for ZynqMP DDR controller")
Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20220414102813.4468-1-shubhrajyoti.datta@xilinx.com
drivers/edac/synopsys_edac.c