]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
EDAC/synopsys: Clear the ECC counters on init
authorShubhrajyoti Datta <shubhrajyoti.datta@amd.com>
Sun, 13 Jul 2025 05:07:53 +0000 (10:37 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:25:52 +0000 (16:25 +0200)
commit0dd05880cd34c0982a1943d5dad9d8efa83271f5
treebd8e24efff3c076ed5222ea9526074263ab3742e
parentcb2e990ed30ccb0a6c02f751dc7dc46df0850013
EDAC/synopsys: Clear the ECC counters on init

[ Upstream commit b1dc7f097b78eb8d25b071ead2384b07a549692b ]

Clear the ECC error and counter registers during initialization/probe to avoid
reporting stale errors that may have occurred before EDAC registration.

For that, unify the Zynq and ZynqMP ECC state reading paths and simplify the
code.

  [ bp: Massage commit message.
    Fix an -Wsometimes-uninitialized warning as reported by
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202507141048.obUv3ZUm-lkp@intel.com ]
Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/20250713050753.7042-1-shubhrajyoti.datta@amd.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/edac/synopsys_edac.c