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 <abe@electronshepherds.com>
This commit is contained in:
Abe Kohandel 2020-04-07 23:05:27 -07:00 committed by Maureen Helm
commit d35567b375

View file

@ -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)) {