Thread (26 messages) 26 messages, 5 authors, 2023-06-16

Re: [PATCH 2/3] thermal: qoriq_thermal: only enable supported sensors

flat view

From: Daniel Lezcano <hidden>
Date: 2023-06-07 19:10:27
Also in: linux-pm, lkml

On 07/06/2023 19:42, Sebastian Krzyszkowiak wrote:

[ ... ]
quoted
Hence, the thermal_zone_device_register_with_trips() is not called, the
thermal zone is not created neither updated.
Again - that's not the case the check is there for. It's there for zones that
do exist and that do get registered, because REGS_TMR only gets set *after*
all the zones are already registered (the driver as it is right now does not
know which sites it should enable before registering the zones). Because of
that, the first value a zone gets after being registered is always bogus,
because no monitoring site has been enabled yet at all.
Ok, I misunderstood. I thought that was for failing registered thermal zone.

Would enabling the site in ops->change_mode do the trick ?







-- 
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help