]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 22 Jun 2022 12:22:17 +0000 (14:22 +0200)
commit9782c515bf4028a731baf85227baf298e3a121db
treed035c5cf8a3a0b09d0181c2a231dab35858c5c02
parent8e95af9dbb6275b4de4ca35b8474878746614a01
EDAC/synopsys: Read the error count from the correct register

BugLink: https://bugs.launchpad.net/bugs/1972905
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/edac/synopsys_edac.c