[PATCH] dmaengine: xilinx: xilinx_dma: Fix dma_device directions

Marek Vasut marex at nabladev.com
Mon Mar 16 15:16:54 PDT 2026


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 at nabladev.com>
---
Cc: Michal Simek <michal.simek at amd.com>
Cc: Radhey Shyam Pandey <radhey.shyam.pandey at amd.com>
Cc: Rahul Navale <rahul.navale at ifm.com>
Cc: Sasha Levin <sashal at kernel.org>
Cc: Suraj Gupta <suraj.gupta2 at amd.com>
Cc: Thomas Gessler <thomas.gessler at brueckmann-gmbh.de>
Cc: Vinod Koul <vkoul at kernel.org>
Cc: dmaengine at vger.kernel.org
Cc: linux-arm-kernel at lists.infradead.org
Cc: linux-kernel at vger.kernel.org
---
 drivers/dma/xilinx/xilinx_dma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/dma/xilinx/xilinx_dma.c b/drivers/dma/xilinx/xilinx_dma.c
index 7f240fdfe8bb1..6e8e348973a9e 100644
--- a/drivers/dma/xilinx/xilinx_dma.c
+++ b/drivers/dma/xilinx/xilinx_dma.c
@@ -3045,7 +3045,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);
-- 
2.51.0




More information about the linux-arm-kernel mailing list