]> git.baikalelectronics.ru Git - kernel.git/commit
spi: rspi: SPI DMA core needs both RX and TX DMA to function
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 2 Jun 2014 13:38:11 +0000 (15:38 +0200)
committerMark Brown <broonie@linaro.org>
Mon, 2 Jun 2014 14:49:34 +0000 (15:49 +0100)
commit8272ab1d9b44768ca897addd52072df3b0322cf9
tree3f89d35aa78e6d382f6097c63194bd4d96526881
parentb9bcc6d9937b3d10d2d948798d7f885658bf5939
spi: rspi: SPI DMA core needs both RX and TX DMA to function

The SPI DMA core framework needs both RX and TX DMA to function.  As a
preparation for converting the driver to use this framework, fall back to
PIO if no DMA channel or only one DMA channel is available.

This affects only RSPI, which could do DMA transfers for TX-only before.
RSPI-RZ and QSPI (at least for Single SPI Transfers) will need both RX and
TX DMA anyway.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-rspi.c