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:
parent
282562c8a1
commit
d35567b375
1 changed files with 1 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue