]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
i2c-omap: Fix BUFSTAT_REG reading
authorEero Nurkkala <ext-eero.nurkkala@nokia.com>
Fri, 3 Apr 2009 22:53:20 +0000 (15:53 -0700)
committerTony Lindgren <tony@atomide.com>
Fri, 3 Apr 2009 22:53:20 +0000 (15:53 -0700)
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>

No differences found