i2c-omap: Make sure i2c bus is free before setting it to idle
authorMathias Nyman <mathias.nyman@nokia.com>
Thu, 26 Aug 2010 07:36:44 +0000 (07:36 +0000)
committerBen Dooks <ben-linux@fluff.org>
Wed, 22 Sep 2010 00:06:58 +0000 (01:06 +0100)
commit5c64eb26ed5c5550fbabd345e573af3fc6a7f775
tree9a78f9e7c55865e8ece8c577afeacc789cce2098
parent2422084a94fcd5038406261b331672a13c92c050
i2c-omap: Make sure i2c bus is free before setting it to idle

If the i2c bus receives an interrupt with both BB (bus busy) and
ARDY (register access ready) statuses set during the tranfer of the last message
the bus was put to idle while still busy.

This caused bus to timeout.

Signed-off-by: Mathias Nyman <mathias.nyman@nokia.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-omap.c