]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dmaengine: stm32-dma3: clamp AXI burst using match data
authorAmelie Delaunay <amelie.delaunay@foss.st.com>
Wed, 16 Oct 2024 12:39:58 +0000 (14:39 +0200)
committerVinod Koul <vkoul@kernel.org>
Mon, 21 Oct 2024 17:21:45 +0000 (22:51 +0530)
commite713468e7c104a0598a7ec31ab7ec0bec94a174d
treeff00f30a034755c438119e05ac5089526caf3905
parent2ff0fb9474eefa7149c199fb3f79e54355a6c184
dmaengine: stm32-dma3: clamp AXI burst using match data

STM32 DMA3 can be interconnected with AXI3 or AXI4 busses. In case it is
interconnected with AXI3, the maximum burst length supported by AXI3
protocol is 16 beats, which is lower than the maximum burst length
supported by STM32 DMA3. So the programmed burst has to be shortened when
AXI port is used.
Introduce struct stm32_dma3_pdata to specify the specific configurations
(e.g. AXI maximum burst length) required by the SoC, so implied by the SoC
specific compatible.

Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Link: https://lore.kernel.org/r/20241016-dma3-mp25-updates-v3-6-8311fe6f228d@foss.st.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/stm32/stm32-dma3.c