spi: dw-mid: split rx and tx callbacks when DMA
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 28 Oct 2014 16:25:02 +0000 (18:25 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 28 Oct 2014 22:40:38 +0000 (22:40 +0000)
commit30c8eb52cc4a7bed59d85243e769ce420f179140
tree24f623b6778fcebfdaf8b5c8e30abbedaa600fb4
parenta5c2db964d3eb26b41bd7abc1b13486f732b3aa2
spi: dw-mid: split rx and tx callbacks when DMA

Currently driver wouldn't work properly if user asked for simplex transfer. The
patch separates DMA rx and tx callbacks and finishes transfer correctly in any
case.

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