I2C: OMAP: Do not set the XUDF(Transmit underflow) if the underflow is not reached
authorShubhrajyoti D <shubhrajyoti@ti.com>
Tue, 29 May 2012 10:56:21 +0000 (16:26 +0530)
committerWolfram Sang <w.sang@pengutronix.de>
Sun, 8 Jul 2012 10:49:14 +0000 (12:49 +0200)
commite7e62df09d9be4288c1b33aff6eef078f61c97aa
treed315f92dbe674b4080da2a1b82f7af852f426ae1
parent9aa8ec676b6ef151ab11868d16a928d92410d25e
I2C: OMAP: Do not set the XUDF(Transmit underflow) if the underflow is not reached

Currently in the 1.153 errata handling, while waiting for transmitter
underflow, if NACK is got the XUDF(Transmit underflow) flag is also set.
Fix this by setting the XUDF(Transmit underflow) flag after wait for the
condition is over.

Cc: Alexander Shishkin <virtuoso@slind.org>
Acked-by: Moiz Sonasath <m-sonasath@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-omap.c