Skip to content

Commit 056a8aa

Browse files
Fabrizio Castrovinodkoul
authored andcommitted
dmaengine: sh: rz-dmac: Allow for multiple DMACs
dma_request_channel() calls into __dma_request_channel() with NULL as value for np, which won't allow for the selection of the correct DMAC when multiple DMACs are available. Switch to using __dma_request_channel() directly so that we can choose the desired DMA for the channel. This is in preparation of adding DMAC support for the Renesas RZ/V2H(P) and similar SoCs. Signed-off-by: Fabrizio Castro <[email protected]> Reviewed-by: Lad Prabhakar <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 9002b75 commit 056a8aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/dma/sh/rz-dmac.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,8 @@ static struct dma_chan *rz_dmac_of_xlate(struct of_phandle_args *dma_spec,
748748
dma_cap_zero(mask);
749749
dma_cap_set(DMA_SLAVE, mask);
750750

751-
return dma_request_channel(mask, rz_dmac_chan_filter, dma_spec);
751+
return __dma_request_channel(&mask, rz_dmac_chan_filter, dma_spec,
752+
ofdma->of_node);
752753
}
753754

754755
/*

0 commit comments

Comments
 (0)