i2c: octeon: thunderx: TWSI software reset in recovery
authorJan Glauber <jglauber@cavium.com>
Fri, 9 Dec 2016 09:31:55 +0000 (10:31 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Sun, 11 Dec 2016 21:58:34 +0000 (22:58 +0100)
commitccee1a4cdcd02e748d39d2b121f7f82041893121
tree835d8c1535e2483f6721df6543d0620f000e1bb6
parentf8989783d7a4b076cf11eea1347ed068ff4c2c77
i2c: octeon: thunderx: TWSI software reset in recovery

I've seen i2c recovery reporting long loops of:

[ 1035.887818] i2c i2c-4: SCL is stuck low, exit recovery
[ 1037.999748] i2c i2c-4: SCL is stuck low, exit recovery
[ 1040.111694] i2c i2c-4: SCL is stuck low, exit recovery
...

Add a TWSI software reset which clears the status and
STA,STP,IFLG in SW_TWSI_EOP_TWSI_CTL.

With this the recovery works fine and above message is not seen.

Signed-off-by: Jan Glauber <jglauber@cavium.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-octeon-core.c