Skip to content

Commit d856f1e

Browse files
Marek Vasutbroonie
authored andcommitted
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>
1 parent ddffeb8 commit d856f1e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/spi/spi-mxs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ static int mxs_spi_transfer_one(struct spi_master *master,
480480
first = last = 0;
481481
}
482482

483-
m->status = 0;
483+
m->status = status;
484484
spi_finalize_current_message(master);
485485

486486
return status;

0 commit comments

Comments
 (0)