linux/drivers/dma/sf-pdma
Zong Li e2dfce24f4 dmaengine: sf-pdma: Get number of channel by device tree
It currently assumes that there are always four channels, it would
cause the error if there is actually less than four channels. Change
that by getting number of channel from device tree.

For backwards-compatibility, it uses the default value (i.e. 4) when
there is no 'dma-channels' information in dts.

Signed-off-by: Zong Li <zong.li@sifive.com>
Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Link: https://lore.kernel.org/r/f08a95b6582a51712c5b2c3cb859136d07bfa8b9.1648461096.git.zong.li@sifive.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2022-04-08 18:43:29 +05:30
..
Kconfig dmaengine: SF_PDMA depends on HAS_IOMEM 2021-05-31 09:44:14 +05:30
Makefile
sf-pdma.c dmaengine: sf-pdma: Get number of channel by device tree 2022-04-08 18:43:29 +05:30
sf-pdma.h dmaengine: sf-pdma: Get number of channel by device tree 2022-04-08 18:43:29 +05:30