diff options
| author | Jianing Li <m13940358460@163.com> | 2026-08-10 08:47:01 +0800 |
|---|---|---|
| committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2026-08-13 00:07:58 +0200 |
| commit | 86a3a8a926aa5969c329d1df2d3259f189961bbc (patch) | |
| tree | e3fb8ded58f67b2840f280b6d13e4a832f2ebff8 /scripts/objdiff | |
| parent | ceb6ac43b0f591722401922ceb958ce2616935e0 (diff) | |
| download | linux-86a3a8a926aa5969c329d1df2d3259f189961bbc.tar.gz linux-86a3a8a926aa5969c329d1df2d3259f189961bbc.zip | |
power: supply: max17040: synchronize work cancellation on suspend
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.
Use cancel_delayed_work_sync() to ensure polling is quiesced before
suspend completes.
Fixes: c6f4a42de60b ("Add MAX17040 Fuel Gauge driver")
Cc: stable@vger.kernel.org
Signed-off-by: Jianing Li <m13940358460@163.com>
Link: https://patch.msgid.link/20260810004701.1683-1-m13940358460@163.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
