]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: uWire RX error fix
authorImre Deak <imre.deak@nokia.com>
Thu, 9 Feb 2006 15:22:50 +0000 (17:22 +0200)
committerJuha Yrjola <juha.yrjola@nokia.com>
Thu, 9 Feb 2006 15:22:50 +0000 (17:22 +0200)
The RX path maintained the number of received bytes incorrectly causing
the transmission to be aborted.

Signed-off-by: Imre Deak <imre.deak@nokia.com>
Signed-off-by: Juha Yrjölä <juha.yrjola@nokia.com>
drivers/spi/omap_uwire.c

index 93eb7d8683ff4a856b1ceffe1fb7baaf38c9a76a..1caecd734df286f752a59b33b8e59b7393fea878 100644 (file)
@@ -274,7 +274,7 @@ static int uwire_txrx(struct spi_device *spi, struct spi_transfer *t)
                        *buf++ = (u8) val;
                        if (bytes == 2)
                                *buf++ = val >> 8;
-                       status += len;
+                       status += bytes;
 #ifdef VERBOSE
                        pr_debug("%s: read-%d =%04x\n",
                                        spi->dev.bus_id, bits, val);