i2c-bcm2835: Flush FIFOs cleanly on error
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Tue, 23 May 2023 13:11:52 +0000 (14:11 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:35 +0000 (11:33 +0000)
commita3d20887294b35a195ecbd420c464302fc2bb0c6
treed8835a7d749c6344ef31a8f4efe24e05169109d7
parentf2f8995a4873e68d74d147c7fa3b3305291747d3
i2c-bcm2835: Flush FIFOs cleanly on error

On error condition, note the error return code, but still
handle the FIFOs in the normal way rather than relying on
C_CLEAR flushing everything cleanly.

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