Commit 7e015114 authored by Thomas Gessler's avatar Thomas Gessler Committed by Vinod Koul
Browse files

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: default avatarThomas Gessler <thomas.gessler@brueckmann-gmbh.de>
Reviewed-by: default avatarSuraj Gupta <suraj.gupta2@amd.com>
Tested-by: default avatarFolker Schwesinger <dev@folker-schwesinger.de>
Link: https://lore.kernel.org/r/20250507182101.909010-1-thomas.gessler@brueckmann-gmbh.de


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 21e12738
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2909,6 +2909,8 @@ static int xilinx_dma_chan_probe(struct xilinx_dma_device *xdev,
		return -EINVAL;
	}

	xdev->common.directions |= chan->direction;

	/* Request the interrupt */
	chan->irq = of_irq_get(node, chan->tdest);
	if (chan->irq < 0)