Re: [PATCH v13 1/2] thermal: loongson-2: add thermal management support

From: Krzysztof Kozlowski
Date: Fri Apr 21 2023 - 03:18:10 EST


On 21/04/2023 04:00, zhuyinbo wrote:
>
>
> 在 2023/4/20 下午11:54, Krzysztof Kozlowski 写道:
>> On 21/02/2023 10:53, Yinbo Zhu wrote:
>>> This patch adds the support for Loongson-2 thermal sensor controller,
>>> which can support maximum 4 sensors, each sensor contains a sampling
>>> register and a control register. The sampling register is used to obtain
>>> the temperature in real time, the control register GATE field is used to
>>> set the threshold of high or low temperature, when the input temperature
>>> is higher than the high temperature threshold or lower than the low
>>> temperature threshold, an interrupt will occur.
>>>
>>> Signed-off-by: zhanghongchen <zhanghongchen@xxxxxxxxxxx>
>>> Signed-off-by: Yinbo Zhu <zhuyinbo@xxxxxxxxxxx>
>>> ---
>>> Change in v13:
>>> 1. Add a description about that how works the sensor.
>>> 2. Drop the COMPILE_TEST.
>>
>> Why? We want to compile test. We really, really want.
>>
>
> I noted a commit "8df4ef3eaa62b" that accoring to Daniel's reminder.

The commit is for OF! That's not the case here. Your driver is limited
to chosen ARCH.

Best regards,
Krzysztof