Skip to content

Commit 97bb0a3

Browse files
Marek Vasutgregkh
authored andcommitted
dmaengine: xilinx: xilinx_dma: Fix dma_device directions
[ Upstream commit e9cc953 ] 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 <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>
1 parent 0e4f437 commit 97bb0a3

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
@@ -3003,7 +3003,7 @@ static int xilinx_dma_chan_probe(struct xilinx_dma_device *xdev,
30033003
return -EINVAL;
30043004
}
30053005

3006-
xdev->common.directions |= chan->direction;
3006+
xdev->common.directions |= BIT(chan->direction);
30073007

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

0 commit comments

Comments
 (0)