From: Imre Deak Date: Thu, 9 Feb 2006 15:22:50 +0000 (+0200) Subject: ARM: OMAP: uWire RX error fix X-Git-Tag: v2.6.16-omap1~81 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=202b883f5a353c8ff646ccff88ae37582341238d;p=linux-2.6-omap-h63xx.git ARM: OMAP: uWire RX error fix The RX path maintained the number of received bytes incorrectly causing the transmission to be aborted. Signed-off-by: Imre Deak Signed-off-by: Juha Yrjölä --- diff --git a/drivers/spi/omap_uwire.c b/drivers/spi/omap_uwire.c index 93eb7d8683f..1caecd734df 100644 --- a/drivers/spi/omap_uwire.c +++ b/drivers/spi/omap_uwire.c @@ -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);