]> git.baikalelectronics.ru Git - kernel.git/commit
spi: uniphier: Add DMA transfer mode support
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Tue, 24 Dec 2019 00:58:27 +0000 (09:58 +0900)
committerMark Brown <broonie@kernel.org>
Wed, 25 Dec 2019 18:21:05 +0000 (18:21 +0000)
commitad7f7899a9e884460ec53c10a0d34943d93d051a
treef22fdacaff5722931cd72c4cc6d0e1918aea36f4
parent82e73997d84ce8958c35c1f0804fa470934b287c
spi: uniphier: Add DMA transfer mode support

This adds DMA transfer mode support for UniPhier SPI controller.

Since this controller requires simulteaneous transmission and reception,
this indicates SPI_CONTROLLER_MUST_RX and SPI_CONTROLLER_MUST_TX.

Because the supported dma controller has alignment restiction,
there is also a restriction that 'maxburst' parameters in dma_slave_config
corresponds to one word width.

Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Link: https://lore.kernel.org/r/1577149107-30670-6-git-send-email-hayashi.kunihiko@socionext.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-uniphier.c