Files
kernel_amazon_mt8127-common/drivers
Daniel Santos 4371c27218 spidev: fix hang when transfer_one_message fails
commit e120cc0dcf2880a4c5c0a6cb27b655600a1cfa1d 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-12-08 07:29:25 -08:00
2014-01-09 12:24:21 -08:00
2014-02-06 11:08:12 -08:00
2014-02-06 11:08:16 -08:00
2013-12-20 07:45:11 -08:00
2013-12-11 22:36:28 -08:00
2014-02-06 11:08:15 -08:00
2013-12-20 07:45:11 -08:00