]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
EDAC/i5000: disable error reporting at teardown and refactor helper
authorTushar Tibude <tushar.tibude1000@gmail.com>
Thu, 30 Apr 2026 08:42:21 +0000 (14:12 +0530)
committerTony Luck <tony.luck@intel.com>
Fri, 29 May 2026 15:34:11 +0000 (08:34 -0700)
commitdfe7d89d200b08f8387ca224039495b210272e28
tree328a68e1fa49dc5615fd8f4ab3df090fd3ef631c
parent7944f44098c277d0a5e34a4d9d078077d05f51af
EDAC/i5000: disable error reporting at teardown and refactor helper

If error reporting is enabled during initialization but initialization
fails immediately after, or during normal driver teardown, error reporting
is left enabled in the mask register even after exit.

Replace i5000_enable_error_reporting() with i5000_set_error_reporting()
to combine enabling/disabling. Disable reporting at initialization
failure and driver exit, before call to i5000_put_devices() for cleanup.

This ensures clean hardware handling by disabling any unused error
reporting bits before exiting.

Signed-off-by: Tushar Tibude <tushar.tibude1000@gmail.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Reviewed-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Link: https://patch.msgid.link/20260430084223.9298-2-tushar.tibude1000@gmail.com
drivers/edac/i5000_edac.c