From: Jagadeesh Kona <quic_jkona@quicinc.com>
To: Bryan O'Donoghue <bryan.odonoghue@linaro.org>,
Bjorn Andersson <andersson@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
"Stephen Boyd" <sboyd@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>,
Dmitry Baryshkov <lumag@kernel.org>
Cc: Ajit Pandey <quic_ajipan@quicinc.com>,
Imran Shaik <quic_imrashai@quicinc.com>,
Taniya Das <quic_tdas@quicinc.com>,
"Satya Priya Kakitapalli" <quic_skakitap@quicinc.com>,
<linux-arm-msm@vger.kernel.org>, <linux-clk@vger.kernel.org>,
<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Subject: Re: [PATCH v3 05/18] clk: qcom: common: Handle runtime power management in qcom_cc_really_probe
Date: Fri, 28 Mar 2025 16:11:44 +0530 [thread overview]
Message-ID: <b3228ab0-63c0-4cb4-9671-87601a7bed9b@quicinc.com> (raw)
In-Reply-To: <db2566c3-d9e4-4c16-9389-0406de288d7d@linaro.org>
On 3/27/2025 9:28 PM, Bryan O'Donoghue wrote:
> On 27/03/2025 09:52, Jagadeesh Kona wrote:
>> - return ret;
>> + goto put_rpm;
>> +
>> + ret = qcom_cc_icc_register(dev, desc);
>> +
>> +put_rpm:
>> + if (desc->use_rpm)
>> + pm_runtime_put(dev);
>> - return qcom_cc_icc_register(dev, desc);
>> + return ret;
>> }
>> EXPORT_SYMBOL_GPL(qcom_cc_really_probe);
>
> Doesn't look right you're missing the put if register goes wrong
>
The intention is to call pm_runtime_put() regardless of the return value
from qcom_cc_icc_register(), as it is the final API call. Therefore, the
return type is not checked, and pm_runtime_put() is called in both success
and failure cases before returning the final return code.
Thanks,
Jagadeesh
> ret = qcom_cc_icc_register(dev, desc);
>
> if (ret)
> goto put_rpm;
>
> return 0;
>
> put_rpm:
> if (desc->us_rpm)
> pm_runtime_put();
>
> return ret;
next prev parent reply other threads:[~2025-03-28 10:41 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-27 9:52 [PATCH v3 00/18] clk: qcom: Add support to attach multiple power domains in cc probe Jagadeesh Kona
2025-03-27 9:52 ` [PATCH v3 01/18] dt-bindings: clock: qcom,sm8450-videocc: Add MXC power domain Jagadeesh Kona
2025-03-28 8:09 ` Krzysztof Kozlowski
2025-03-28 8:10 ` Krzysztof Kozlowski
2025-03-27 9:52 ` [PATCH v3 02/18] dt-bindings: clock: qcom: Update sc8280xp camcc bindings Jagadeesh Kona
2025-03-27 15:39 ` Bryan O'Donoghue
2025-03-28 8:07 ` Krzysztof Kozlowski
2025-03-28 10:39 ` Jagadeesh Kona
2025-03-27 9:52 ` [PATCH v3 03/18] dt-bindings: clock: qcom: sm8450-camcc: Allow to specify two power domains Jagadeesh Kona
2025-03-27 15:28 ` Bryan O'Donoghue
2025-03-28 10:39 ` Jagadeesh Kona
2025-03-28 8:11 ` Krzysztof Kozlowski
2025-03-27 9:52 ` [PATCH v3 04/18] clk: qcom: clk-alpha-pll: Add support for common PLL configuration function Jagadeesh Kona
2025-03-27 15:51 ` Bryan O'Donoghue
2025-03-27 18:20 ` Dmitry Baryshkov
2025-04-11 7:13 ` Jagadeesh Kona
2025-03-27 9:52 ` [PATCH v3 05/18] clk: qcom: common: Handle runtime power management in qcom_cc_really_probe Jagadeesh Kona
2025-03-27 12:44 ` Dmitry Baryshkov
2025-03-27 15:58 ` Bryan O'Donoghue
2025-03-28 10:41 ` Jagadeesh Kona [this message]
2025-03-27 9:52 ` [PATCH v3 06/18] clk: qcom: common: Add support to configure clk regs " Jagadeesh Kona
2025-03-27 12:50 ` Dmitry Baryshkov
2025-04-11 7:14 ` Jagadeesh Kona
2025-04-11 8:51 ` Dmitry Baryshkov
2025-04-14 10:09 ` Jagadeesh Kona
2025-04-14 10:13 ` Dmitry Baryshkov
2025-03-27 9:52 ` [PATCH v3 07/18] clk: qcom: videocc-sm8450: Move PLL & clk configuration to really probe Jagadeesh Kona
2025-03-27 12:51 ` Dmitry Baryshkov
2025-03-27 9:52 ` [PATCH v3 08/18] clk: qcom: videocc-sm8550: " Jagadeesh Kona
2025-03-27 13:58 ` Dmitry Baryshkov
2025-03-27 9:52 ` [PATCH v3 09/18] clk: qcom: camcc-sm8450: " Jagadeesh Kona
2025-03-27 13:58 ` Dmitry Baryshkov
2025-03-27 9:52 ` [PATCH v3 10/18] clk: qcom: camcc-sm8550: " Jagadeesh Kona
2025-03-27 15:06 ` Dmitry Baryshkov
2025-03-27 9:52 ` [PATCH v3 11/18] clk: qcom: camcc-sm8650: " Jagadeesh Kona
2025-03-27 9:52 ` [PATCH v3 12/18] clk: qcom: camcc-x1e80100: " Jagadeesh Kona
2025-03-27 15:59 ` Bryan O'Donoghue
2025-03-27 9:52 ` [PATCH v3 13/18] arm64: dts: qcom: Add MXC power domain to videocc node on SM8450 Jagadeesh Kona
2025-03-27 9:52 ` [PATCH v3 14/18] arm64: dts: qcom: Add MXC power domain to videocc node on SM8550 Jagadeesh Kona
2025-03-27 9:52 ` [PATCH v3 15/18] arm64: dts: qcom: Add MXC power domain to videocc node on SM8650 Jagadeesh Kona
2025-04-01 15:27 ` Konrad Dybcio
2025-04-01 16:00 ` Konrad Dybcio
2025-04-11 7:27 ` Jagadeesh Kona
2025-04-11 7:16 ` Jagadeesh Kona
2025-04-11 9:15 ` Konrad Dybcio
2025-03-27 9:52 ` [PATCH v3 16/18] arm64: dts: qcom: Add MXC power domain to camcc node on SM8450 Jagadeesh Kona
2025-03-27 16:03 ` Bryan O'Donoghue
2025-03-28 10:40 ` Jagadeesh Kona
2025-03-27 9:52 ` [PATCH v3 17/18] arm64: dts: qcom: sm8550: Additionally manage MXC power domain in camcc Jagadeesh Kona
2025-03-27 9:52 ` [PATCH v3 18/18] arm64: dts: qcom: Add MXC power domain to camcc node on SM8650 Jagadeesh Kona
2025-03-27 14:03 ` [PATCH v3 00/18] clk: qcom: Add support to attach multiple power domains in cc probe Rob Herring (Arm)
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=b3228ab0-63c0-4cb4-9671-87601a7bed9b@quicinc.com \
--to=quic_jkona@quicinc.com \
--cc=andersson@kernel.org \
--cc=bryan.odonoghue@linaro.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lumag@kernel.org \
--cc=mturquette@baylibre.com \
--cc=quic_ajipan@quicinc.com \
--cc=quic_imrashai@quicinc.com \
--cc=quic_skakitap@quicinc.com \
--cc=quic_tdas@quicinc.com \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=vladimir.zapolskiy@linaro.org \
/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
all inboxes | Powered by JetHome®