Re: [PATCH] power: supply: max17040: synchronize work cancellation on suspend

From: Sebastian Reichel

Date: Wed Aug 12 2026 - 18:24:43 EST



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 <sebastian.reichel@xxxxxxxxxxxxx>