]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
EDAC/altera: Use correct write width with the INTTEST register
authorNiravkumar L Rabara <niravkumar.l.rabara@intel.com>
Tue, 27 May 2025 14:57:07 +0000 (07:57 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:05:25 +0000 (11:05 +0100)
commit1ee9bab209493381d948a5fe2bf86a9d5d4c7e6f
tree2053da0117e4206d2692d94d86e1ce25f4a82d4e
parentac6992f72bd8e22679c1e147ac214de6a7093c23
EDAC/altera: Use correct write width with the INTTEST register

commit e5ef4cd2a47f27c0c9d8ff6c0f63a18937c071a3 upstream.

On the SoCFPGA platform, the INTTEST register supports only 16-bit writes.
A 32-bit write triggers an SError to the CPU so do 16-bit accesses only.

  [ bp: AI-massage the commit message. ]

Fixes: c7b4be8db8bc ("EDAC, altera: Add Arria10 OCRAM ECC support")
Signed-off-by: Niravkumar L Rabara <niravkumar.l.rabara@intel.com>
Signed-off-by: Matthew Gerlach <matthew.gerlach@altera.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Dinh Nguyen <dinguyen@kernel.org>
Cc: stable@kernel.org
Link: https://lore.kernel.org/20250527145707.25458-1-matthew.gerlach@altera.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/edac/altera_edac.c