commit | c467d919f0da1c83ebee5087e166cf2bcfbb6f6d | [log] [tgz] |
---|---|---|
author | Heiner Kallweit <hkallweit1@gmail.com> | Mon Dec 19 19:13:44 2022 +0100 |
committer | Wolfram Sang <wsa@kernel.org> | Sun Feb 12 22:10:30 2023 +0100 |
tree | eada043ea244396676524f65a3b26062b1065eff | |
parent | fce55da31d091187555a7af9c055de85f0cea6c4 [diff] |
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>