Skip to contentSkip to conversation

dmaengine: xilinx: xilinx_dma: Fix dma_device directions

PATCH Applied Marek Vasut 2 participants 2 messages Mar 16 – Mar 17

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")

---
Cc: Michal Simek <[email protected]>
Cc: Radhey Shyam Pandey <[email protected]>
Cc: Rahul Navale <[email protected]>
Cc: Sasha Levin <[email protected]>
Cc: Suraj Gupta <[email protected]>
Cc: Thomas Gessler <[email protected]>
Cc: Vinod Koul <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 drivers/dma/xilinx/xilinx_dma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/xilinx/xilinx_dma.c +1 -1
index 7f240fdfe8bb1..6e8e348973a9e 100644
@@ -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);
Signature · 1 line
2.51.0
maintainer Applied
#1 lore raw
Quoted 5 lines · Marek Vasut

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 .

Applied, thanks!

[1/1] dmaengine: xilinx: xilinx_dma: Fix dma_device directions

      commit: e9cc95397bb7da13fe8a5b53a2f23cfaf9018ade

Best regards,

Signature · 1 line
~Vinod