]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita0437cf786d77d21a6af3f305939e37e8baa90b1
treee9fce46a5b9a33fcfc9593763b78f6bc46c787ea
parentb7d65746744b343701de14ca433982a3229390be
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