Browse Source

spi: mxs: Assign message status after transfer finished

In the current code implementing the MXS SPI driver, every transferred
message had assigned status = 0, which is not correct. Properly assign
status returned from the I/O functions.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Marek Vasut 13 years ago
parent
commit
d856f1eb56
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/spi/spi-mxs.c

+ 1 - 1
drivers/spi/spi-mxs.c

@@ -480,7 +480,7 @@ static int mxs_spi_transfer_one(struct spi_master *master,
 		first = last = 0;
 		first = last = 0;
 	}
 	}
 
 
-	m->status = 0;
+	m->status = status;
 	spi_finalize_current_message(master);
 	spi_finalize_current_message(master);
 
 
 	return status;
 	return status;