]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
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)
commit9753e43a9a5d364605565721ef698e51b6686905
tree2c15f42b9421a05893b9607b3626b18d7a46cdba
parentc604f7356437a85ee295165050cf924bf170ff97
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