Daniel Santos e120cc0dcf spidev: fix hang when transfer_one_message fails
This corrects a problem in spi_pump_messages() that leads to an spi
message hanging forever when a call to transfer_one_message() fails.
This failure occurs in my MCP2210 driver when the cs_change bit is set
on the last transfer in a message, an operation which the hardware does
not support.

Rationale
Since the transfer_one_message() returns an int, we must presume that it
may fail.  If transfer_one_message() should never fail, it should return
void.  Thus, calls to transfer_one_message() should properly manage a
failure.

Fixes: ffbbdd21329f3 (spi: create a message queueing infrastructure)
Signed-off-by: Daniel Santos <daniel.santos@pobox.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org
2014-01-06 12:54:39 +00:00
..
2011-06-06 01:16:30 -06:00
2013-11-14 11:04:38 -08:00
2011-09-21 09:41:48 -06:00
2013-08-29 13:56:23 +01:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2013-05-23 09:09:55 -05:00
2013-08-29 13:56:23 +01:00
2013-10-15 13:15:52 +01:00