Skip to content

Commit 7317ae2

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 e21da2a commit 7317ae2

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
@@ -2907,7 +2907,7 @@ static int xilinx_dma_chan_probe(struct xilinx_dma_device *xdev,
29072907
return -EINVAL;
29082908
}
29092909

2910-
xdev->common.directions |= chan->direction;
2910+
xdev->common.directions |= BIT(chan->direction);
29112911

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

0 commit comments

Comments
 (0)