]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dmaengine: xilinx_dma: Set dma_device directions
authorThomas Gessler <thomas.gessler@brueckmann-gmbh.de>
Wed, 7 May 2025 18:21:01 +0000 (20:21 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 14 May 2025 13:50:07 +0000 (14:50 +0100)
commit7e01511443c30a55a5ae78d3debd46d4d872517e
tree5377ad61779db51cd09963b3c786b9e26343d58f
parent21e12738779f74d9ae63faa995f5743656eadc07
dmaengine: xilinx_dma: Set dma_device directions

Coalesce the direction bits from the enabled TX and/or RX channels into
the directions bit mask of dma_device. Without this mask set,
dma_get_slave_caps() in the DMAEngine fails, which prevents the driver
from being used with an IIO DMAEngine buffer.

Signed-off-by: Thomas Gessler <thomas.gessler@brueckmann-gmbh.de>
Reviewed-by: Suraj Gupta <suraj.gupta2@amd.com>
Tested-by: Folker Schwesinger <dev@folker-schwesinger.de>
Link: https://lore.kernel.org/r/20250507182101.909010-1-thomas.gessler@brueckmann-gmbh.de
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/xilinx_dma.c