[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9e9f742a-2972-476a-91cf-fc596221bedb@linaro.org>
Date: Tue, 18 Feb 2025 16:44:07 +0000
From: Bryan O'Donoghue <bryan.odonoghue@...aro.org>
To: Jagadeesh Kona <quic_jkona@...cinc.com>,
Bjorn Andersson <andersson@...nel.org>,
Michael Turquette <mturquette@...libre.com>, Stephen Boyd
<sboyd@...nel.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley
<conor+dt@...nel.org>, Konrad Dybcio <konradybcio@...nel.org>
Cc: Ajit Pandey <quic_ajipan@...cinc.com>,
Imran Shaik <quic_imrashai@...cinc.com>, Taniya Das <quic_tdas@...cinc.com>,
Satya Priya Kakitapalli <quic_skakitap@...cinc.com>,
linux-arm-msm@...r.kernel.org, linux-clk@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 4/5] clk: qcom: videocc: Add support to attach multiple
power domains
On 18/02/2025 15:46, Bryan O'Donoghue wrote:
>> + ret = qcom_cc_attach_pds(&pdev->dev, &video_cc_sm8550_desc);
>> + if (ret)
>> + return ret;
>> +
>> ret = devm_pm_runtime_enable(&pdev->dev);
>> if (ret)
>> return ret;
>>
>
> What's the difference between doing the attach here or doing it in
> really_probe() ?
>
> There doesn't seem to be any difference except that we will have an
> additional delay introduced.
>
> Are you describing a race condition ?
>
> I don't see _logic_ here to moving the call into the controller's higher
> level probe.
I see you're saying do this before waking up the local PLLs prior to
really_probe.
hmm.. the existing code works for me on the CRD but not on the Dell
Insprion14 so I missed this on my series.
Instead of pushing qcom_cc_attach_pds() back up one level and having to
do that over and over again for each clock controller that has multiple
power domains, we could just move the configure pll logic to a callback.
Add a new callback to qcom_cc_desc()->configure_plls()
Then qcom_cc_really_probe() would look like:
ret = devm_pm_domain_attach_list();
if (ret < 0 && ret != -EEXIST);
return ret;
desc->configure_plls();
There's no point in having devm_pm_domain_attach_list() twice within <
20 LOC we should just force the sequencing in the right order once and
IMO do it in really_probe() so that we don't keep adding custom logic to
multi-pd controllers.
Its a generic problem we can solve closer to the core logic.
---
bod
Powered by blists - more mailing lists