i2c: i801: Don't clear status flags twice in interrupt mode
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 4 Dec 2021 20:04:40 +0000 (21:04 +0100)
committerWolfram Sang <wsa@kernel.org>
Thu, 9 Dec 2021 14:52:10 +0000 (15:52 +0100)
commit4f7275fc7e570dfc46f733ff8ae131cb128a4758
tree14d52b34d6e1d92cc49c71af2b1a5e55d7b7dd4f
parent8c7a89678f3befa42a05da67724bf501e3187023
i2c: i801: Don't clear status flags twice in interrupt mode

In interrupt mode we clear the status flags twice, in the interrupt
handler and in i801_check_post(). Remove clearing the status flags
from i801_check_post() and handle polling mode by using the
SMBus unlocking write to also clear the status flags if still set.
To be precise: One could still argue that the status flags are
cleared twice in interrupt mode, but it comes for free.

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