[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ad7a09e2-83b2-4885-a41a-94de381271cb@quicinc.com>
Date: Fri, 22 Nov 2024 18:26:03 +0530
From: Manikanta Mylavarapu <quic_mmanikan@...cinc.com>
To: Konrad Dybcio <konrad.dybcio@....qualcomm.com>,
<srinivas.kandagatla@...aro.org>, <robh@...nel.org>,
<krzk+dt@...nel.org>, <conor+dt@...nel.org>, <amitk@...nel.org>,
<thara.gopinath@...il.com>, <rafael@...nel.org>,
<daniel.lezcano@...aro.org>, <rui.zhang@...el.com>,
<lukasz.luba@....com>, <andersson@...nel.org>,
<konradybcio@...nel.org>, <linux-arm-msm@...r.kernel.org>,
<devicetree@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-pm@...r.kernel.org>
CC: <quic_srichara@...cinc.com>, <quic_varada@...cinc.com>
Subject: Re: [PATCH v8 3/7] thermal/drivers/tsens: Add TSENS enable and
calibration support for V2
On 11/22/2024 6:05 PM, Konrad Dybcio wrote:
> On 15.11.2024 11:39 AM, Manikanta Mylavarapu wrote:
>> From: Praveenkumar I <quic_ipkumar@...cinc.com>
>>
>> SoCs without RPM need to enable sensors and calibrate them from the kernel.
>> The IPQ5332 and IPQ5424 use the tsens v2.3.3 IP and do not have RPM.
>> Therefore, add a new calibration function for V2, as the tsens.c calib
>> function only supports V1. Also add new feature_config, ops and data for
>> IPQ5332, IPQ5424.
>>
>> Although the TSENS IP supports 16 sensors, not all are used. The hw_id
>> is used to enable the relevant sensors.
>>
>> Signed-off-by: Praveenkumar I <quic_ipkumar@...cinc.com>
>> Signed-off-by: Manikanta Mylavarapu <quic_mmanikan@...cinc.com>
>> ---
>
> [...]
>
>> +{
>> + u32 shift = V2_SHIFT_DEFAULT;
>> + u32 slope = V2_SLOPE_DEFAULT, czero = V2_CZERO_DEFAULT, val;
>
> Please don't mix initialized and uninitialized variables in the same line,
> I think it would be the cleanest if you initialized the ones you want on
> separate lines and then declared val separately as well (and preferably
> in reverse-Christmas-tree order)
>
> [...]
>
Sure. I will update in next series.
>> + }
>> +
>> + val = FIELD_PREP(CONVERSION_SHIFT_MASK, shift) |
>
> tab->space after '='
>
> [...]
>
Sure. I will update in next series.
>> + /* Select temperature format, unit is deci-Celsius */
>> + regmap_field_write(priv->rf[CODE_OR_TEMP], RSEULT_FORMAT_TEMP);
>
> "result"?
>
Sure. I will update in next series.
Thanks & Regards,
Manikanta.
Powered by blists - more mailing lists