Files
linux/drivers/spi
Daniel Santos 4371c27218 spidev: fix hang when transfer_one_message fails
commit e120cc0dcf upstream.

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: ffbbdd2132 (spi: create a message queueing infrastructure)
Signed-off-by: Daniel Santos <daniel.santos@pobox.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-02-13 13:48:01 -08:00
..
2013-04-07 10:08:00 +01:00
2013-02-06 10:41:12 +00:00
2011-06-06 01:16:30 -06:00
2011-09-21 09:41:48 -06:00
2013-02-05 13:17:12 +00:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2013-06-04 18:51:40 +01:00
2013-04-23 19:27:00 +01:00
2013-04-07 10:08:00 +01:00
2013-04-01 14:32:32 +01:00