]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dmaengine: xilinx: xilinx_dma: Fix dma_device directions
authorMarek Vasut <marex@nabladev.com>
Mon, 16 Mar 2026 22:16:54 +0000 (23:16 +0100)
committerVinod Koul <vkoul@kernel.org>
Tue, 17 Mar 2026 10:44:06 +0000 (16:14 +0530)
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>
drivers/dma/xilinx/xilinx_dma.c

index b53292e02448fe528f1ae9ba33b4bcf408f89fd6..bbecf18b04ac9d1e87717d023dc04c7e121340f2 100644 (file)
@@ -3024,7 +3024,7 @@ static int xilinx_dma_chan_probe(struct xilinx_dma_device *xdev,
                return -EINVAL;
        }
 
-       xdev->common.directions |= chan->direction;
+       xdev->common.directions |= BIT(chan->direction);
 
        /* Request the interrupt */
        chan->irq = of_irq_get(node, chan->tdest);