EDAC/synopsys: Re-enable the error interrupts on v3 hw
authorSherry Sun <sherry.sun@nxp.com>
Wed, 27 Apr 2022 01:51:37 +0000 (09:51 +0800)
committerBorislav Petkov <bp@suse.de>
Fri, 22 Jul 2022 12:31:38 +0000 (14:31 +0200)
commit4bcffe941758ee17becb43af3b25487f848f6512
treebaf8e60168429677fa48d287fffc2ab4689cc5a4
parentbe76ceaf03bc04e74be5e28f608316b73c2b04ad
EDAC/synopsys: Re-enable the error interrupts on v3 hw

zynqmp_get_error_info() writes 0 to the ECC_CLR_OFST register after
an interrupt for a {un-,}correctable error is raised, which disables
the error interrupts. Then the interrupt handler will be called only
once. Therefore, re-enable the error interrupt line at the end of
intr_handler() for v3.x Synopsys EDAC DDR.

Fixes: f7824ded4149 ("EDAC/synopsys: Add support for version 3 of the Synopsys EDAC DDR")
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Shubhrajyoti Datta <Shubhrajyoti.datta@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20220427015137.8406-3-sherry.sun@nxp.com
drivers/edac/synopsys_edac.c