From 202b883f5a353c8ff646ccff88ae37582341238d Mon Sep 17 00:00:00 2001 From: Imre Deak Date: Thu, 9 Feb 2006 17:22:50 +0200 Subject: [PATCH] ARM: OMAP: uWire RX error fix MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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ä --- drivers/spi/omap_uwire.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.41.1