diff options
| author | Pei Xiao <xiaopei01@kylinos.cn> | 2026-07-16 15:04:19 +0800 |
|---|---|---|
| committer | Daniel Lezcano <daniel.lezcano@kernel.org> | 2026-08-07 17:18:39 +0200 |
| commit | 9cbf780428ca1102377a228febd5fc4164ea6512 (patch) | |
| tree | 8d1646dc9903df6e50831a1e84d1a13856b9c631 /scripts/git.orderFile | |
| parent | 83f98a48f22c36bdbae0f5e07e07b26be44816eb (diff) | |
| download | linux-9cbf780428ca1102377a228febd5fc4164ea6512.tar.gz linux-9cbf780428ca1102377a228febd5fc4164ea6512.zip | |
thermal/drivers/spacemit/k1: Add shutdown action and reorder registration order
Add a devm action to clean hardware interrupts, sampling, and control
registers on driver unbind, mirroring what k1_tsensor_init() sets up.
Reorder the registration order within probe(): register the thermal
zones first, then request the IRQ, and register the shutdown action
last. On removal, the hardware interrupt is disabled first, then the
IRQ is released, and finally the thermal zones are released. This
avoids the IRQ thread accessing an already unregistered thermal zone
during devres cleanup.
Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn>
Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org>
Reviewed-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
Link: https://patch.msgid.link/1967d2bcc8fede6fbd25fc8eee07f2873fb41472.1784184867.git.xiaopei01@kylinos.cn
Diffstat (limited to 'scripts/git.orderFile')
0 files changed, 0 insertions, 0 deletions
