i2c: i801: improve interrupt handler
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 19 Dec 2022 18:13:44 +0000 (19:13 +0100)
committerWolfram Sang <wsa@kernel.org>
Sun, 12 Feb 2023 21:10:30 +0000 (22:10 +0100)
commitc467d919f0da1c83ebee5087e166cf2bcfbb6f6d
treeeada043ea244396676524f65a3b26062b1065eff
parentfce55da31d091187555a7af9c055de85f0cea6c4
i2c: i801: improve interrupt handler

Not sure if it can happen, but better play safe: If SMBHSTSTS_BYTE_DONE
and an error flag is set, then don't trust the result and skip calling
i801_isr_byte_done(). In addition clear status bit SMBHSTSTS_BYTE_DONE
in the main interrupt handler, this allows to simplify the code a
little.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-i801.c