]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dmaengine: sh: rz-dmac: Allow for multiple DMACs
authorFabrizio Castro <fabrizio.castro.jz@renesas.com>
Wed, 23 Apr 2025 14:34:20 +0000 (15:34 +0100)
committerVinod Koul <vkoul@kernel.org>
Wed, 14 May 2025 14:30:40 +0000 (15:30 +0100)
commit056a8aac1fce52da9ad0b6488eb074e3846f37c0
treefe9c636c0c3d17f344ac9b83a84b0ec7ce06ac24
parent9002b75aa8e6f034ffbd1c1ccac46927a1cf0f12
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 <fabrizio.castro.jz@renesas.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20250423143422.3747702-5-fabrizio.castro.jz@renesas.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/sh/rz-dmac.c