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: xilinx_dma: Fix dma_device directions

Unlike chan->direction , struct dma_device .directions field is a
bitfield. Turn chan->direction into a bitfield to make it compatible
with struct dma_device .directions .

Fixes: 7e01511443c3 ("dmaengine: xilinx_dma: Set dma_device directions")
Signed-off-by: Marek Vasut <marex@nabladev.com>
Link: https://patch.msgid.link/20260316221728.160139-1-marex@nabladev.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Marek Vasut and committed by
Vinod Koul
e9cc9539 89a8567d

+1 -1
+1 -1
drivers/dma/xilinx/xilinx_dma.c
··· 3024 3024 return -EINVAL; 3025 3025 } 3026 3026 3027 - xdev->common.directions |= chan->direction; 3027 + xdev->common.directions |= BIT(chan->direction); 3028 3028 3029 3029 /* Request the interrupt */ 3030 3030 chan->irq = of_irq_get(node, chan->tdest);