[PATCH v2] EDAC/synopsys: Clear the ECC counters at init
Borislav Petkov
bp at alien8.de
Sun Jul 13 11:29:33 PDT 2025
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 at 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
More information about the linux-arm-kernel
mailing list