Re: [PATCH 7/7] dmaengine: ste_dma40: synchronize tasklet when releasing a channel

From: Linus Walleij

Date: Sun Oct 18 2026 - 17:00:40 EST


On Sun, Oct 18, 2026 at 6:07 AM Jiale Yao <yaojiale02@xxxxxxx> 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@xxxxxxx>

This makes sense.
Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>

Yours,
Linus Walleij