]> git.hungrycats.org Git - linux/commit
hwmon (occ): Retry for checksum failure
authorEddie James <eajames@linux.ibm.com>
Tue, 26 Apr 2022 15:49:56 +0000 (10:49 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Oct 2022 07:58:28 +0000 (09:58 +0200)
commitfbcf76240a308be8c0761f8dce28304ec27df709
tree641f05095e9ce395a74112b9ee7c96dfd1b3f908
parent63a681bcc32a43528ce0f690569f7f48e59c3963
hwmon (occ): Retry for checksum failure

[ Upstream commit dbed963ed62c4c2b8870a02c8b7dcb0c2af3ee0b ]

Due to the OCC communication design with a shared SRAM area,
checkum errors are expected due to corrupted buffer from OCC
communications with other system components. Therefore, retry
the command twice in the event of a checksum failure.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220426154956.27205-3-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwmon/occ/p9_sbe.c