mmc: jz4740: Support using a bi-directional DMA channel
authorPaul Cercueil <paul@crapouillou.net>
Mon, 20 Dec 2021 19:08:40 +0000 (19:08 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 21 Dec 2021 12:38:38 +0000 (13:38 +0100)
commita474e52c3109870946755925ce379d730a6dcaf7
tree1047433931431f004bfc3c68c37da34002dc2c8a
parent34ce29302323b9bf438a3c16dbd6a95d08c4ab66
mmc: jz4740: Support using a bi-directional DMA channel

Since the MMC/SD controller in Ingenic SoCs work in half-duplex, it is
possible to use one single DMA channel for both TX and RX operations,
instead of using separate channels.

As some older Ingenic SoCs offer only a handful of DMA channels,
supporting bi-directional channels allow more hardware to use the
channels that would otherwise be used for the MMC/SD operation.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20211220190840.108061-3-paul@crapouillou.net
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/jz4740_mmc.c