]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
i2c: i2c-omap: Fix BUFSTAT_REG reading
authorEero Nurkkala <ext-eero.nurkkala@nokia.com>
Tue, 25 Nov 2008 11:03:46 +0000 (13:03 +0200)
committerTony Lindgren <tony@atomide.com>
Thu, 8 Jan 2009 13:35:22 +0000 (15:35 +0200)
commit3487568e15df6e133f5f55779dec614dbeb68a99
tree7730493fea3587c9fa4d631dc420abb003b04181
parent2bb68043beee74ff50e57a6377f6b4f9b4ff4558
i2c: i2c-omap: Fix BUFSTAT_REG reading

The number of bytes to be received is read from wrong
place with all OMAPs with highspeed I2C support,
which involves a FIFO and BUFSTAT_REG. It is the 6
bits starting from the bit 8 in the BUFSTAT_REG
that indicate this amount of bytes to be read.
Moreover, only the 6 LSB:s are relevant for the
TXSTAT field.

Signed-off-by: Eero Nurkkala <ext-eero.nurkkala@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/i2c/busses/i2c-omap.c