]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Apr 2026 11:25:55 +0000 (13:25 +0200)
[ Upstream commit e9cc95397bb7da13fe8a5b53a2f23cfaf9018ade ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/dma/xilinx/xilinx_dma.c

index 89a8254d9cdc627305da1a792e288299a3a5fcdd..e6d10079ec6709d07fedc85472c3feea9fc5a680 100644 (file)
@@ -3003,7 +3003,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);