From: Manikanta Mylavarapu <quic_mmanikan@quicinc.com>
To: George Moussalem <george.moussalem@outlook.com>,
<linux-arm-msm@vger.kernel.org>, <linux-pm@vger.kernel.org>,
<devicetree@vger.kernel.org>, <amitk@kernel.org>,
<thara.gopinath@gmail.com>, <dmitry.baryshkov@linaro.org>,
<robh@kernel.org>, <krzk+dt@kernel.org>,
<quic_srichara@quicinc.com>
Subject: Re: [PATCH v6 3/5] thermal: drivers: qcom: Add new feat for soc without rpm
Date: Mon, 24 Feb 2025 14:38:24 +0530 [thread overview]
Message-ID: <be872be1-dd0a-481b-abe0-57ed2bf50c22@quicinc.com> (raw)
In-Reply-To: <DS7PR19MB88837D7AE30CE306B8F71F3E9DC02@DS7PR19MB8883.namprd19.prod.outlook.com>
On 2/24/2025 11:42 AM, George Moussalem wrote:
> From: Sricharan Ramabadhran <quic_srichara@quicinc.com>
>
> In IPQ5018, Tsens IP doesn't have RPM. Hence the early init to
> enable tsens would not be done. So add a flag for that in feat
> and skip enable checks. Without this, tsens probe fails.
>
> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> Signed-off-by: Sricharan Ramabadhran <quic_srichara@quicinc.com>
> Signed-off-by: George Moussalem <george.moussalem@outlook.com>
> ---
> drivers/thermal/qcom/tsens.c | 2 +-
> drivers/thermal/qcom/tsens.h | 3 +++
> 2 files changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c
> index 3aa3736181aa..a25ca17adf1a 100644
> --- a/drivers/thermal/qcom/tsens.c
> +++ b/drivers/thermal/qcom/tsens.c
> @@ -975,7 +975,7 @@ int __init init_common(struct tsens_priv *priv)
> ret = regmap_field_read(priv->rf[TSENS_EN], &enabled);
> if (ret)
> goto err_put_device;
> - if (!enabled) {
> + if (!enabled && !(priv->feat->ignore_enable)) {
Please drop 'ignore_enable' and use 'VER_2_X_NO_RPM' instead.
> dev_err(dev, "%s: device not enabled\n", __func__);
> ret = -ENODEV;
> goto err_put_device;
> diff --git a/drivers/thermal/qcom/tsens.h b/drivers/thermal/qcom/tsens.h
> index 7b36a0318fa6..90bf11fba563 100644
> --- a/drivers/thermal/qcom/tsens.h
> +++ b/drivers/thermal/qcom/tsens.h
> @@ -505,6 +505,8 @@ enum regfield_ids {
> * @srot_split: does the IP neatly splits the register space into SROT and TM,
> * with SROT only being available to secure boot firmware?
> * @has_watchdog: does this IP support watchdog functionality?
> + * @ignore_enable: does this IP reside in a soc that does not have rpm to
> + * do pre-init.
Drop 'ignore_enable'.
> * @max_sensors: maximum sensors supported by this version of the IP
> * @trip_min_temp: minimum trip temperature supported by this version of the IP
> * @trip_max_temp: maximum trip temperature supported by this version of the IP
> @@ -516,6 +518,7 @@ struct tsens_features {
> unsigned int adc:1;
> unsigned int srot_split:1;
> unsigned int has_watchdog:1;
> + unsigned int ignore_enable:1;
Drop 'ignore_enable'.
Thanks & Regards,
Manikanta.
next prev parent reply other threads:[~2025-02-24 9:08 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20250224061224.3342-1-george.moussalem@outlook.com>
2025-02-24 6:12 ` [PATCH v6 1/5] dt-bindings: nvmem: Add compatible for IPQ5018 George Moussalem
2025-02-24 9:19 ` Krzysztof Kozlowski
2025-02-24 13:42 ` Dmitry Baryshkov
2025-02-24 13:49 ` Krzysztof Kozlowski
2025-02-24 13:58 ` George Moussalem
2025-02-24 15:45 ` Dmitry Baryshkov
[not found] ` <DS7PR19MB888339C2474E520C495ED62B9DC02@DS7PR19MB8883.namprd19.prod.outlook.com>
2025-02-24 14:11 ` Krzysztof Kozlowski
2025-02-24 6:12 ` [PATCH v6 2/5] dt-bindings: thermal: qcom-tsens: Add ipq5018 compatible George Moussalem
2025-02-24 6:12 ` [PATCH v6 3/5] thermal: drivers: qcom: Add new feat for soc without rpm George Moussalem
2025-02-24 9:08 ` Manikanta Mylavarapu [this message]
2025-02-24 10:33 ` George Moussalem
2025-02-24 13:45 ` Dmitry Baryshkov
2025-02-24 6:12 ` [PATCH v6 4/5] thermal: qcom: tsens: Add support for IPQ5018 tsens George Moussalem
2025-02-24 6:12 ` [PATCH v6 5/5] arm64: dts: qcom: ipq5018: Add tsens node George Moussalem
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=be872be1-dd0a-481b-abe0-57ed2bf50c22@quicinc.com \
--to=quic_mmanikan@quicinc.com \
--cc=amitk@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=george.moussalem@outlook.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=quic_srichara@quicinc.com \
--cc=robh@kernel.org \
--cc=thara.gopinath@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox