Skip to content

Commit

Permalink
drivers: dma: stm32: Stream disable success
Browse files Browse the repository at this point in the history
When a DMA stream is successfully disabled, the function should
immediately return with a success status.

Signed-off-by: Abe Kohandel <[email protected]>
  • Loading branch information
ekohandel authored and MaureenHelm committed Apr 8, 2020
1 parent 282562c commit d35567b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/dma/dma_stm32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit d35567b

Please sign in to comment.