i2c: i2c-bfin-twi: Tighten condition when failing I2C transfer if MEN bit is reset...
authorSonic Zhang <sonic.zhang@analog.com>
Wed, 13 Jun 2012 08:22:43 +0000 (16:22 +0800)
committerWolfram Sang <w.sang@pengutronix.de>
Fri, 13 Jul 2012 06:36:07 +0000 (08:36 +0200)
commit2ee74eb95cf36b1a69e483f9ba2191bd8022b2c1
tree9b7c67eec08cb2d43118cf570758e69fa2a1ab2f
parenta25733d6f6968240042ac94dc93c7ae3c9e8d68b
i2c: i2c-bfin-twi: Tighten condition when failing I2C transfer if MEN bit is reset unexpectedly.

In order to mark I2C transfer fail when MEN bit in I2C controller is
reset unexpectedly in MCOMP interrupt, interrupt status bits XMTSERV or
RCVSERV should be checked.

Master Transfer Complete (MCOMP).
[1] The initiated master transfer has completed. In the absence of a
repeat start, the bus has been released.
[0] The completion of a transfer has not been detected.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
[wsa: fixed spaces around operators and typo in commit message]

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-bfin-twi.c