]> git.karo-electronics.de Git - karo-tx-linux.git/commit
i2c: octeon: Avoid sending STOP during recovery
authorDmitry Bazhenov <dmitry.bazhenov@auriga.com>
Wed, 21 Sep 2016 06:51:03 +0000 (08:51 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 21 Sep 2016 21:04:35 +0000 (23:04 +0200)
commitde919ff6a0060510b099405d9b8f9413aba9ae14
tree078568adaac77f0323303276709bdce2c7291653
parente7051556b63dac163a82db6e6f324196c0c81e5b
i2c: octeon: Avoid sending STOP during recovery

Due to a bug in the ThunderX I2C hardware sending STOP during
a recovery attempt could lock up the hardware. To work around
this problem do not send STOP at the beginning of the recovery
but use the override registers to bring the TWSI including
the high-level controller out of the bad state.

Signed-off-by: Dmitry Bazhenov <dmitry.bazhenov@auriga.com>
Signed-off-by: Jan Glauber <jglauber@cavium.com>
[Changed commit message]
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-octeon-core.c