spi: introduce master->handle_err() callback
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 27 Feb 2015 15:34:15 +0000 (17:34 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 6 Mar 2015 19:41:56 +0000 (19:41 +0000)
commitb716c4ffc6a2b0bfbcf9619880f335be11b65708
treee9fce46a5b9a33fcfc9593763b78f6bc46c787ea
parentc517d838eb7d07bbe9507871fab3931deccff539
spi: introduce master->handle_err() callback

This callback would be useful to handle an error that occurs in the generic
implementation of transfer_one_message(). The good candidate for this is to
drain FIFO and / or to terminate DMA transfers when timeout happened.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c
include/linux/spi/spi.h