dmaengine: xilinx: xilinx_dma: Fix dma_device directions
Subsystems (2)
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 .
---
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
@@ -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
Quoted 5 lines · Marek Vasut
Unlike
chan->direction, structdma_device.directions field is a bitfield. Turnchan->directioninto a bitfield to make it compatible with structdma_device.directions .
Applied, thanks!
[1/1] dmaengine: xilinx: xilinx_dma: Fix dma_device directions
commit: e9cc95397bb7da13fe8a5b53a2f23cfaf9018ade
Best regards,
Signature · 1 line
~Vinod