]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: stm32-dma: fix stm32_dma_prep_slave_sg in case of MDMA chaining
authorAmelie Delaunay <amelie.delaunay@foss.st.com>
Wed, 4 Oct 2023 15:50:23 +0000 (17:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Oct 2023 21:08:54 +0000 (23:08 +0200)
commit1e3b981a25dbd9d703587bfdc089b8d1ee12b019
treef9d9b2a582e3847b76355c1c7681af63209f43fc
parent8e7dfe9c2ac8fc92859e68eb0a00f52e2f3a6ebc
dmaengine: stm32-dma: fix stm32_dma_prep_slave_sg in case of MDMA chaining

commit 2df467e908ce463cff1431ca1b00f650f7a514b4 upstream.

Current Target (CT) have to be reset when starting an MDMA chaining use
case, as Double Buffer mode is activated. It ensures the DMA will start
processing the first memory target (pointed with SxM0AR).

Fixes: 723795173ce1 ("dmaengine: stm32-dma: add support to trigger STM32 MDMA")
Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20231004155024.2609531-1-amelie.delaunay@foss.st.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/stm32-dma.c