i2c-omap: Bug in reading the RXSTAT/TXSTAT values from the I2C_BUFFSTAT register
authorSonasath, Moiz <m-sonasath@ti.com>
Tue, 21 Jul 2009 15:14:06 +0000 (10:14 -0500)
committerBen Dooks <ben-linux@fluff.org>
Thu, 30 Jul 2009 00:03:23 +0000 (01:03 +0100)
commitbfb6b6588af5ff762222cee79152d2be738ccc06
tree1dd86d274a5b1c1ce8de9be45b4888edf191be57
parentccb3bc16b4891a82649d4bccbeefe60b1d9a62e2
i2c-omap: Bug in reading the RXSTAT/TXSTAT values from the I2C_BUFFSTAT register

Fix bug in reading the I2C_BUFFSTAT register for getting byte count on RX/TX interrupt.

On Interrupt: I2C_STAT[RDR],
read 'RXSTAT' from I2C_BUFFSTAT[8-13]
On Interrupt: I2C_STAT[XDR]
read 'TXSTAT' from I2C_BUFFSTAT[0-5]

Signed-off-by: Jagadeesh Pakaravoor <j-pakaravoor@ti.com>
Signed-off-by: Moiz Sonasath <m-sonasath@ti.com>
Signed-off-by: Vikram pandita <vikram.pandita@ti.com>
[ben-linux@fluff.org: fixed mail format and added i2c-omap to subject]
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-omap.c