diff options
| author | Myeonghun Pak <mhun512@gmail.com> | 2026-10-14 22:51:10 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-10-15 15:54:10 +0100 |
| commit | f0ecc305442f20a6df2575943e9897825d80cc5d (patch) | |
| tree | 6a7a19e6a8544bb2e118031f377172d0aeb3d45d /tools/perf/scripts/python/stackcollapse.py | |
| parent | ac24731d0072411562d294b870f9b267dabc40a2 (diff) | |
ASoC: rt5645: Shut down the button timer on removal
jack_detect_work can rearm btn_check_timer, and the timer callback can
queue jack_detect_work. Deleting the timer before cancelling the work
does not break this cycle: an already running worker can rearm the timer
after timer_delete_sync() returns. The timer can then outlive removal.
Use timer_shutdown_sync() before cancelling the delayed work so that
subsequent attempts to rearm the timer are ignored. The IRQ producer has
already been removed at this point. Keep the restartable timer deletion
in the suspend path.
This issue was identified as part of our ongoing research while
reviewing kernel code.
Fixes: 7ff6319e7da5 ("ASoC: rt5645: use polling to support HS button")
Assisted-by: LLM
Co-developed-by: Ijae Kim <ae878000@gmail.com>
Signed-off-by: Ijae Kim <ae878000@gmail.com>
Signed-off-by: Myeonghun Pak <mhun512@gmail.com>
Link: https://patch.msgid.link/179203261324.2681924.5002100194676410503.rt5645-button-timer@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
