]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
i2c: aspeed: Update the stop sw state when the bus recovery occurs
authorTommy Huang <tommy_huang@aspeedtech.com>
Wed, 11 Sep 2024 09:39:51 +0000 (17:39 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:18 +0000 (15:11 +0200)
commita2146b6150bc866f7507b18b58188fbb75edee07
tree1fa477d2a8ad9561b377a6a4145855da43ee73ae
parent8ce4b0d440837fccd19a7349123a5f6fbda61f76
i2c: aspeed: Update the stop sw state when the bus recovery occurs

commit 93701d3b84ac5f3ea07259d4ced405c53d757985 upstream.

When the i2c bus recovery occurs, driver will send i2c stop command
in the scl low condition. In this case the sw state will still keep
original situation. Under multi-master usage, i2c bus recovery will
be called when i2c transfer timeout occurs. Update the stop command
calling with aspeed_i2c_do_stop function to update master_state.

Fixes: f327c686d3ba ("i2c: aspeed: added driver for Aspeed I2C")
Cc: stable@vger.kernel.org # v4.13+
Signed-off-by: Tommy Huang <tommy_huang@aspeedtech.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-aspeed.c