Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Thomas Gessler and committed by
Vinod Koul
7e015114 21e12738

+2
+2
drivers/dma/xilinx/xilinx_dma.c
··· 2909 2909 return -EINVAL; 2910 2910 } 2911 2911 2912 + xdev->common.directions |= chan->direction; 2913 + 2912 2914 /* Request the interrupt */ 2913 2915 chan->irq = of_irq_get(node, chan->tdest); 2914 2916 if (chan->irq < 0)