[PATCH 7/7] dmaengine: ste_dma40: synchronize tasklet when releasing a channel
Linus Walleij
linusw at kernel.org
Sun Oct 18 14:00:17 PDT 2026
On Sun, Oct 18, 2026 at 6:07 AM Jiale Yao <yaojiale02 at 163.com> wrote:
> DMA completion handling schedules a per-channel tasklet that processes
> completed descriptors and invokes client callbacks. Channel release
> terminates and frees the descriptor state without draining a tasklet
> that was already queued.
>
> After d40_free_dma() removes the channel from the interrupt lookup
> tables, kill the tasklet before returning the channel to the DMAengine
> core.
>
> Fixes: 8d318a50b3d7 ("DMAENGINE: Support for ST-Ericssons DMA40 block v3")
> Signed-off-by: Jiale Yao <yaojiale02 at 163.com>
This makes sense.
Reviewed-by: Linus Walleij <linusw at kernel.org>
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list