hwmon (occ): Retry for checksum failure
authorEddie James <eajames@linux.ibm.com>
Tue, 26 Apr 2022 15:49:56 +0000 (10:49 -0500)
committerJoel Stanley <joel@jms.id.au>
Wed, 28 Sep 2022 11:40:57 +0000 (21:10 +0930)
commitdbed963ed62c4c2b8870a02c8b7dcb0c2af3ee0b
tree5731c6204621c75cc12c61784ac8b7e4bed1334c
parent7326939faa4b8d078dd2b8cddc36b5758d9b984c
hwmon (occ): Retry for checksum failure

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>
drivers/hwmon/occ/p9_sbe.c