dmaengine: jz4780: Support bidirectional I/O on one channel
authorPaul Cercueil <paul@crapouillou.net>
Mon, 6 Dec 2021 17:42:59 +0000 (17:42 +0000)
committerVinod Koul <vkoul@kernel.org>
Fri, 17 Dec 2021 16:09:27 +0000 (21:39 +0530)
commit76a096637d6381165584c6e9a21e531d1911c549
treeed23a5a2197c8c0cb0f1425dc80f81d2617dc87d
parentc8c0cda827b90aad250360c657b30b2bcdf82503
dmaengine: jz4780: Support bidirectional I/O on one channel

For some devices with only half-duplex capabilities, it doesn't make
much sense to use one DMA channel per direction, as both channels will
never be active at the same time.

Add support for bidirectional I/O on DMA channels. The client drivers
can then request a "tx-rx" DMA channel which will be used for both
directions.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20211206174259.68133-7-paul@crapouillou.net
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dma-jz4780.c