]> www.infradead.org Git - nvme.git/commit
platform/chrome: cros_ec_lpc: MEC access can return error code
authorBen Walsh <ben@jubnut.com>
Wed, 5 Jun 2024 06:33:47 +0000 (07:33 +0100)
committerTzung-Bi Shih <tzungbi@kernel.org>
Thu, 6 Jun 2024 03:09:16 +0000 (03:09 +0000)
commit68dbac0a58ef7d82bc78dcb7e5ab5db2c6dfb489
treef23a1efdb38df578e9f08c276bd07911fc2d034b
parent106d6739823369c734a8fc3b13634274eee4f60e
platform/chrome: cros_ec_lpc: MEC access can return error code

cros_ec_lpc_io_bytes_mec was returning a u8 checksum of all bytes
read/written, which didn't leave room to indicate errors. Change this
u8 to an int where negative values indicate an error, and non-negative
values are the checksum as before.

Tested-by: Dustin L. Howett <dustin@howett.net>
Signed-off-by: Ben Walsh <ben@jubnut.com>
Link: https://lore.kernel.org/r/20240605063351.14836-2-ben@jubnut.com
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
drivers/platform/chrome/cros_ec_lpc.c
drivers/platform/chrome/cros_ec_lpc_mec.c
drivers/platform/chrome/cros_ec_lpc_mec.h
drivers/platform/chrome/wilco_ec/mailbox.c