Re: [PATCH] power: supply: bq27xxx: synchronize work cancellation on suspend
From: Sebastian Reichel
Date: Wed Sep 09 2026 - 17:01:45 EST
On Thu, 27 Aug 2026 05:22:29 +0800, Shengzhuo Wei wrote:
> The poll work requeues itself via mod_delayed_work() while the device
> is not removed. cancel_delayed_work() does not wait for a callback
> that is already running, so a poll racing with suspend can keep
> issuing I2C transfers after suspend returns and requeue itself into
> early resume.
>
> Use cancel_delayed_work_sync() to quiesce polling before suspend
> completes, as the teardown path already does.
>
> [...]
Applied, thanks!
[1/1] power: supply: bq27xxx: synchronize work cancellation on suspend
commit: 5fa10f61bbe255011ca9368b8bd6352b7d724bd3
Best regards,
--
Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>