Re: [PATCH v2] thermal: spacemit: k1: add shutdown action and reorder registration order

Pei Xiao <[email protected]> Thu, 6 Aug 2026 10:44:06 +0800
Newsgroups org.infradead.lists.linux-riscv,dev.linux.lists.spacemit,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pm
Message-ID <[email protected]>

在 2026/7/22 15:54, Troy Mitchell 写道:
> On Thu Jul 16, 2026 at 12:04 AM PDT, Pei Xiao wrote:
>> 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 <[email protected]>
> Reviewed-by: Troy Mitchell <[email protected]>
friendly ping.
prevent being forgotten.

Pei.
Thanks!
> 
> Thanks.


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv