[PATCH v2 15/15] arm64: dts: mediatek: mt8188: add default thermal zones
Julien Panis
jpanis at baylibre.com
Mon May 20 06:19:38 PDT 2024
On 4/4/24 17:16, Daniel Lezcano wrote:
>
> Hi Nico,
>
> a few comments about this description.
>
> On 02/04/2024 05:25, Nicolas Pitre wrote:
>> From: Nicolas Pitre <npitre at baylibre.com>
>>
>> Inspired by the vendor kernel but adapted to the upstream thermal
>> driver version.
>
> [ ... ]
>
>> + thermal_zones: thermal-zones {
>> + cpu-little0-thermal {
>> + polling-delay = <1000>;
>
> Except if I'm wrong, the driver supports the interrupt mode, so it not necessary to poll
> constantly when there is no mitigation. You can remove the line and everywhere else.
Hello Daniel,
By reading at the comment in the driver, above lvts_irq_handler(),
I'm not sure actually. Here is what I read:
"The interrupt is configured for thermal events when crossing the
hot temperature limit".
IOW, lvts_irq_handler() is not meant to notify some "data ready"
event, as far as I understand.
Don't you think we should keep this polling-delay ?
Julien
More information about the Linux-mediatek
mailing list