i2c: iproc: handle invalid slave state
authorRoman Bacik <roman.bacik@broadcom.com>
Thu, 24 Aug 2023 21:23:51 +0000 (14:23 -0700)
committerWolfram Sang <wsa@kernel.org>
Wed, 8 Nov 2023 09:16:35 +0000 (10:16 +0100)
commitba15a14399c262f91ce30c19fcbdc952262dd1be
treeb52118f8b0a88a1e42ddff070121f07b24c925b8
parent305230142ae0637213bf6e04f6d9f10bbcb74af8
i2c: iproc: handle invalid slave state

Add the code to handle an invalid state when both bits S_RX_EVENT
(indicating a transaction) and S_START_BUSY (indicating the end
of transaction - transition of START_BUSY from 1 to 0) are set in
the interrupt status register during a slave read.

Signed-off-by: Roman Bacik <roman.bacik@broadcom.com>
Fixes: 1ca1b4516088 ("i2c: iproc: handle Master aborted error")
Acked-by: Ray Jui <ray.jui@broadcom.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-bcm-iproc.c