From d35567b3757b1d4076f90e23a52e470fe3deb1f7 Mon Sep 17 00:00:00 2001 From: Abe Kohandel Date: Tue, 7 Apr 2020 23:05:27 -0700 Subject: [PATCH] drivers: dma: stm32: Stream disable success When a DMA stream is successfully disabled, the function should immediately return with a success status. Signed-off-by: Abe Kohandel --- drivers/dma/dma_stm32.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/dma_stm32.c b/drivers/dma/dma_stm32.c index 3c678b5cc2b..1723246817e 100644 --- a/drivers/dma/dma_stm32.c +++ b/drivers/dma/dma_stm32.c @@ -391,6 +391,7 @@ int dma_stm32_disable_stream(DMA_TypeDef *dma, u32_t id) for (;;) { if (!stm32_dma_disable_stream(dma, id)) { + return 0; } /* After trying for 5 seconds, give up */ if (count++ > (5 * 1000)) {