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 <[email protected]> Reviewed-by: Suraj Gupta <[email protected]> Tested-by: Folker Schwesinger <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 21e1273 commit 7e01511

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)