Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d856f1eb authored by Marek Vasut's avatar Marek Vasut Committed by Mark Brown
Browse files

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: default avatarMarek Vasut <marex@denx.de>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent ddffeb8c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;