]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dmaengine: stm32-dma3: defer channel registration to specify channel name
authorAmelie Delaunay <amelie.delaunay@foss.st.com>
Fri, 31 May 2024 15:07:11 +0000 (17:07 +0200)
committerVinod Koul <vkoul@kernel.org>
Tue, 11 Jun 2024 18:25:34 +0000 (23:55 +0530)
commit49b1c21ff815168eca44e81ab0612b1f00759efb
tree96188aa7108f71835c7c2506dbe3af119e4cbb99
parent10b8e0fd3f7234a38db2c8d2c8dec0bd6eeede44
dmaengine: stm32-dma3: defer channel registration to specify channel name

On STM32 DMA3, channels can be reserved, so they are non available for
Linux. This non-availability creates a mismatch between dma_chan id and
DMA3 channel id.

Use dma_async_device_channel_register() to register the channels
after controller registration and change the default channel name, so that
it can match the name in the Reference Manual and ease requesting a channel
thanks to its name.

Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Link: https://lore.kernel.org/r/20240531150712.2503554-12-amelie.delaunay@foss.st.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/stm32/stm32-dma3.c