Skip to content

Commit e9cc953

Browse files
Marek Vasutvinodkoul
authored andcommitted
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: 7e01511 ("dmaengine: xilinx_dma: Set dma_device directions") Signed-off-by: Marek Vasut <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 89a8567 commit e9cc953

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/dma/xilinx/xilinx_dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3024,7 +3024,7 @@ static int xilinx_dma_chan_probe(struct xilinx_dma_device *xdev,
30243024
return -EINVAL;
30253025
}
30263026

3027-
xdev->common.directions |= chan->direction;
3027+
xdev->common.directions |= BIT(chan->direction);
30283028

30293029
/* Request the interrupt */
30303030
chan->irq = of_irq_get(node, chan->tdest);

0 commit comments

Comments
 (0)