i2c-bfin-twi: handle faulty slave devices better
authorMichael Hennerich <michael.hennerich@analog.com>
Tue, 11 Jan 2011 05:25:08 +0000 (00:25 -0500)
committerBen Dooks <ben-linux@fluff.org>
Wed, 12 Jan 2011 22:23:05 +0000 (22:23 +0000)
commit540ac5553e8169413a90a8e68b3a10f801640eb7
tree628dcd685d392ddc2c8fe692035050db2609dbcf
parentf878133bf022717b880d0e0995b8f91436fd605c
i2c-bfin-twi: handle faulty slave devices better

Faulty slave devices might drive SDA low after a transfer finishes.  So,
when this scenario is detected, have the master generate up to 9 extra
clocks until the SDA is properly released.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-bfin-twi.c