Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> writes: > Cc += Yuan Yao who authored DMA support and the NXP team. > > On Wed, May 23, 2018 at 11:56:20AM +0200, Esben Haabendal wrote: >> From: Esben Haabendal <eha@xxxxxxxx> >> >> Make sure to call reinit_completion() before dma is started to avoid race >> condition where reinit_compleition() is called after complete() and before > > s/compleition/completion/ Will fix in v2. > >> wait_for_completion_timeout(). > > Is this a theoretical problem, or did it trigger on your side? I thought I did trigger it, but haven't been able to reproduce. So it might or might not be theoretical based on my experiences, but it does look like something that can (and thus should) trigger sometimes. /Esben