]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Apr 2022 12:38:57 +0000 (14:38 +0200)
commitb81291922f8b145d51bf46e518cd25e015e6f109
tree1ae1fbf8e8232622483721c8d6b0a24ddbe16df1
parent87dd813bd2c3cc846658fc10de8ca9350c805684
EDAC/synopsys: Read the error count from the correct register

commit e2932d1f6f055b2af2114c7e64a26dc1b5593d0c upstream.

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

  [ bp: Massage. ]

Fixes: b500b4a029d5 ("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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/edac/synopsys_edac.c