Skip to content

Commit 7e01511

Browse files
thgbevinodkoul
authored andcommitted
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>
1 parent 21e1273 commit 7e01511

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/dma/xilinx/xilinx_dma.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2909,6 +2909,8 @@ static int xilinx_dma_chan_probe(struct xilinx_dma_device *xdev,
29092909
return -EINVAL;
29102910
}
29112911

2912+
xdev->common.directions |= chan->direction;
2913+
29122914
/* Request the interrupt */
29132915
chan->irq = of_irq_get(node, chan->tdest);
29142916
if (chan->irq < 0)

0 commit comments

Comments
 (0)