i2c-bcm2835: Do not abort transfers on ERR if still active
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Tue, 23 May 2023 13:14:05 +0000 (14:14 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:35 +0000 (11:33 +0000)
commit9408e6d9481a86379eebadf7b65336282b81ee1e
tree87a128f91697a8e889397b7e528965707e33c4a6
parenta3d20887294b35a195ecbd420c464302fc2bb0c6
i2c-bcm2835: Do not abort transfers on ERR if still active

If a transaction is aborted immediately on ERR being reported,
then the bus is not returned to the STOP condition, and devices
generally get very upset.

Handle the ERR and CLKT conditions only when TA is not set.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/i2c/busses/i2c-bcm2835.c