Re: (subset) [PATCH v3] mfd: da903x: cancel IRQ work during teardown
From: Lee Jones
Date: Wed Sep 02 2026 - 11:46:45 EST
On Fri, 14 Aug 2026 23:30:19 +0800, Hongyan Xu wrote:
> The IRQ handler disables the IRQ and schedules irq_work. Releasing the
> IRQ does not drain that work, which can continue to use the devm-allocated
> chip and notifier state.
>
> Manage both IRQ-work cancellation and subdevice removal with devres.
> Register the subdevice-removal action before requesting the IRQ, then add
> the IRQ-work action after the request. This avoids leaving a live IRQ
> without work cancellation if action registration fails. Devres cleanup
> then disables the IRQ and drains the work before releasing the IRQ and
> removing child devices. Register both actions before creating the children
> so partial probe failures use the same ordering.
>
> [...]
Applied, thanks!
[1/1] mfd: da903x: cancel IRQ work during teardown
commit: df41eb0718d7ec4609c98844aca3ea381bb569ef
--
Lee Jones [李琼斯]