]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
i2c-omap: Fix BUFSTAT_REG reading
authorEero Nurkkala <ext-eero.nurkkala@nokia.com>
Tue, 7 Apr 2009 22:27:49 +0000 (15:27 -0700)
committerTony Lindgren <tony@atomide.com>
Tue, 7 Apr 2009 22:27:49 +0000 (15:27 -0700)
commit39a5fd92ded0e6665128451feb5135457eaf27d6
treea4d0d9b2fc18f846af129605cf3bb39c75fc63ae
parentcf8d224071de2e70822eebe48e936e5f742e3a8b
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