Re: [PATCH v2] EDAC/synopsys: Clear the ECC counters at init
From: Borislav Petkov <bp@alien8.de>
Date: 2025-07-13 18:29:57
Also in:
linux-edac, lkml
From: Borislav Petkov <bp@alien8.de>
Date: 2025-07-13 18:29:57
Also in:
linux-edac, lkml
On Sun, Jul 13, 2025 at 10:37:53AM +0530, Shubhrajyoti Datta wrote:
Clear ECC error and counter registers during initialization/ probe to avoid reporting stale errors that may have occurred before EDAC registration. Key changes - Introduced a unified `get_ecc_state()` function that handles ECC state detection and register clearing for both Zynq and ZynqMP platforms. - Removed platform-specific `get_ecc_state` function pointers from the platform data structures. - Added a new `platform` enum field to `synps_platform_data` to identify the target hardware platform. Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@amd.com> --- Changes in v2: - Update the commit message - Add the zynq reset changes - remove the function pointer - Use a plat field instead of the quirk drivers/edac/synopsys_edac.c | 96 +++++++++++++++++------------------- 1 file changed, 45 insertions(+), 51 deletions(-)
Applied, thanks.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette