Skip to content

Commit

Permalink
spi: mxs: Assign message status after transfer finished
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marek Vasut authored and Mark Brown committed Oct 17, 2012
1 parent ddffeb8 commit d856f1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi-mxs.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ static int mxs_spi_transfer_one(struct spi_master *master,
first = last = 0;
}

m->status = 0;
m->status = status;
spi_finalize_current_message(master);

return status;
Expand Down

0 comments on commit d856f1e

Please sign in to comment.