summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJianing Li <m13940358460@163.com>2026-08-10 08:47:01 +0800
committerSebastian Reichel <sebastian.reichel@collabora.com>2026-08-13 00:07:58 +0200
commit86a3a8a926aa5969c329d1df2d3259f189961bbc (patch)
treee3fb8ded58f67b2840f280b6d13e4a832f2ebff8 /scripts
parentceb6ac43b0f591722401922ceb958ce2616935e0 (diff)
downloadlinux-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')
0 files changed, 0 insertions, 0 deletions