diff options
| author | 2026-05-17 13:34:45 +0530 | |
|---|---|---|
| committer | 2026-06-09 08:23:05 -0700 | |
| commit | eb0d491e2787aa359f0d930151ff6e5e5df70fb9 (patch) | |
| tree | 9caf22cca8ee9051707ad45e509a0ccd2532bb53 /scripts/Makefile.thinlto | |
| parent | hwmon: (raspberrypi) Add voltage input support (diff) | |
hwmon: (raspberrypi) Fix delayed-work teardown race
The delayed polling work rearms itself from the work function, so use
explicit delayed-work setup and cleanup instead of
devm_delayed_work_autocancel().
Initialize the delayed work with INIT_DELAYED_WORK() and register a
devres cleanup action that calls disable_delayed_work_sync() during
teardown.
This addresses the concern raised during review about the polling work
being able to requeue itself while the driver is being removed.
Signed-off-by: Shubham Chakraborty <chakrabortyshubham66@gmail.com>
Link: https://lore.kernel.org/r/20260517080445.103962-4-chakrabortyshubham66@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
