[PW_SID:1128585] [v2] thermal: spacemit: k1: add shutdown action and reorder registration order#2297
[PW_SID:1128585] [v2] thermal: spacemit: k1: add shutdown action and reorder registration order#2297linux-riscv-bot wants to merge 2 commits into
Conversation
…rder 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: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[v2] thermal: spacemit: k1: add shutdown action and reorder registration order" |
|
Patch 1: "[v2] thermal: spacemit: k1: add shutdown action and reorder registration order" |
|
Patch 1: "[v2] thermal: spacemit: k1: add shutdown action and reorder registration order" |
|
Patch 1: "[v2] thermal: spacemit: k1: add shutdown action and reorder registration order" |
|
Patch 1: "[v2] thermal: spacemit: k1: add shutdown action and reorder registration order" |
|
Patch 1: "[v2] thermal: spacemit: k1: add shutdown action and reorder registration order" |
|
Patch 1: "[v2] thermal: spacemit: k1: add shutdown action and reorder registration order" |
|
Patch 1: "[v2] thermal: spacemit: k1: add shutdown action and reorder registration order" |
|
Patch 1: "[v2] thermal: spacemit: k1: add shutdown action and reorder registration order" |
|
Patch 1: "[v2] thermal: spacemit: k1: add shutdown action and reorder registration order" |
|
Patch 1: "[v2] thermal: spacemit: k1: add shutdown action and reorder registration order" |
|
Patch 1: "[v2] thermal: spacemit: k1: add shutdown action and reorder registration order" |
8ca72ef to
60e0882
Compare
PR for series 1128585 applied to workflow__riscv__fixes
Name: [v2] thermal: spacemit: k1: add shutdown action and reorder registration order
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1128585
Version: 2