]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: imx: Check for I2SR_IAL after every byte
authorChristian Eggers <ceggers@arri.de>
Fri, 9 Oct 2020 11:03:19 +0000 (13:03 +0200)
committerWolfram Sang <wsa@kernel.org>
Wed, 2 Dec 2020 20:28:20 +0000 (21:28 +0100)
commite7323fad98ea4fdb29c35fc36abb1bde18705cb5
tree77db1ed346aa4ed5548b2235951f92f09024a6a0
parent2a5588b04a2e176d5806b411076570c24e8decaa
i2c: imx: Check for I2SR_IAL after every byte

Arbitration Lost (IAL) can happen after every single byte transfer. If
arbitration is lost, the I2C hardware will autonomously switch from
master mode to slave. If a transfer is not aborted in this state,
consecutive transfers will not be executed by the hardware and will
timeout.

Signed-off-by: Christian Eggers <ceggers@arri.de>
Tested (not extensively) on Vybrid VF500 (Toradex VF50):
Tested-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Oleksij Rempel <o.rempel@pengutronix.de>
Cc: stable@vger.kernel.org
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-imx.c