Skip to content
Commit cdc57093 authored by Jian Zhang's avatar Jian Zhang Committed by Greg Kroah-Hartman
Browse files

i2c: aspeed: Fix i2c bus hang in slave read

commit 54f1840d upstream.

When the `CONFIG_I2C_SLAVE` option is enabled and the device operates
as a slave, a situation arises where the master sends a START signal
without the accompanying STOP signal. This action results in a
persistent I2C bus timeout. The core issue stems from the fact that
the i2c controller remains in a slave read state without a timeout
mechanism. As a consequence, the bus perpetually experiences timeouts.

In this case, the i2c bus will be reset, but the slave_state reset is
missing.

Fixes: fee46515

 ("i2c: aspeed: Reset the i2c controller when timeout occurs")
Signed-off-by: default avatarJian Zhang <zhangjian.3032@bytedance.com>
Acked-by: default avatarAndi Shyti <andi.shyti@kernel.org>
Tested-by: default avatarAndrew Jeffery <andrew@codeconstruct.com.au>
Reviewed-by: default avatarAndrew Jeffery <andrew@codeconstruct.com.au>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e97d374a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment