Re: [PATCH] power: supply: max17040: synchronize work cancellation on suspend
Sebastian Reichel <[email protected]>
| Newsgroups | org.kernel.vger.linux-pm,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <178657343063.347615.2933073571109497351.b4-ty@b4> |
On Mon, 10 Aug 2026 08:47:01 +0800, Jianing Li wrote:
> max17040_work() requeues itself after every poll. cancel_delayed_work()
> only cancels a pending instance and does not wait for a callback that is
> already running.
>
> If system suspend races with the polling callback, the callback can
> continue accessing the fuel gauge and requeue itself after the suspend
> callback returns.
>
> [...]
Applied, thanks!
[1/1] power: supply: max17040: synchronize work cancellation on suspend
commit: 86a3a8a926aa5969c329d1df2d3259f189961bbc
Best regards,
--
Sebastian Reichel <[email protected]>