dmaengine: stm32-dma: mark pending descriptor complete in terminate_all
authorAmelie Delaunay <amelie.delaunay@foss.st.com>
Mon, 11 Oct 2021 09:42:57 +0000 (11:42 +0200)
committerVinod Koul <vkoul@kernel.org>
Mon, 18 Oct 2021 06:42:50 +0000 (12:12 +0530)
commit79e40b06a4ebfc8e0a48ed6164345f8e0a96b699
tree0dd2d134ccd9a1902586ef0d2e0096e08a77a6f6
parent981703aae3b1965896caaef95f25886ec8007744
dmaengine: stm32-dma: mark pending descriptor complete in terminate_all

To prevent accidental repeated completion, mark pending descriptor
complete in terminate_all. It can be the case when terminate_all is called
while no end of transfer interrupt occurs.

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