]> git.baikalelectronics.ru Git - kernel.git/commit
spi: dw-mid: take care of FIFO overrun/underrun when do DMA
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 9 Mar 2015 14:48:47 +0000 (16:48 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 9 Mar 2015 18:11:13 +0000 (18:11 +0000)
commit4935ddc5ac22487fe14cd38e151b67b5126bc944
tree2a498e6522720261b2bce4adbbd045e23ca8cd8c
parent0dbfa14224a12814d8aa4764ed9ae4b99e8ef7df
spi: dw-mid: take care of FIFO overrun/underrun when do DMA

In according to documentation SPI in DMA mode may encounter underrun/overrun
failures in rare cases. When such failure occurs, an error recovery protocol is
expected to be implemented in the device driver so that the failed transaction
can be restarted.

This patch enables FIFO overrun / underrun interrupts in DMA case and adds a
handler for that.

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