From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Luca Weiss <luca.weiss@fairphone.com>,
Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Cc: 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>,
~postmarketos/upstreaming@lists.sr.ht,
phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 00/10] Add clock drivers for SM7635
Date: Tue, 1 Jul 2025 17:19:17 +0200 [thread overview]
Message-ID: <24e4241e-d8a1-41c7-b0f3-3ec01b4375ae@oss.qualcomm.com> (raw)
In-Reply-To: <DB0RG4PFFP4A.1BAZWWZU2TWJF@fairphone.com>
On 01-Jul-25 15:42, Luca Weiss wrote:
> On Tue Jul 1, 2025 at 1:16 PM CEST, Dmitry Baryshkov wrote:
>> On Mon, Jun 30, 2025 at 10:01:35AM +0200, Luca Weiss wrote:
>>> Hi Konrad,
>>>
>>> On Fri Jun 27, 2025 at 5:14 PM CEST, Luca Weiss wrote:
>>>> On Fri Jun 27, 2025 at 5:10 PM CEST, Konrad Dybcio wrote:
>>>>> On 6/25/25 11:12 AM, Luca Weiss wrote:
>>>>>> Document and add the clock drivers for GCC, CAMCC, DISPCC, GPUCC and
>>>>>> VIDEOCC on the SM7635 SoC.
>>>>>>
>>>>>> Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
>>>>>> ---
>>>>>> Luca Weiss (10):
>>>>>> dt-bindings: clock: qcom: document the SM7635 Global Clock Controller
>>>>>> clk: qcom: Add Global Clock controller (GCC) driver for SM7635
>>>>>> dt-bindings: clock: qcom: document the SM7635 Camera Clock Controller
>>>>>> clk: qcom: Add Camera Clock controller (CAMCC) driver for SM7635
>>>>>> dt-bindings: clock: qcom: document the SM7635 Display Clock Controller
>>>>>> clk: qcom: Add Display Clock controller (DISPCC) driver for SM7635
>>>>>> dt-bindings: clock: qcom: document the SM7635 GPU Clock Controller
>>>>>> clk: qcom: Add Graphics Clock controller (GPUCC) driver for SM7635
>>>>>> dt-bindings: clock: qcom: document the SM7635 Video Clock Controller
>>>>>> clk: qcom: Add Video Clock controller (VIDEOCC) driver for SM7635
>>>>>
>>>>> We had a massive yak shaving patchset go in this season, please move
>>>>> the magic settings in .probe to qcom_cc_driver_data {}
>>>>
>>>> Okay cool, I found them
>>>> https://lore.kernel.org/linux-arm-msm/174970084192.547582.612305407582982706.b4-ty@kernel.org/
>>>
>>> For camcc, gpucc and videocc it seems quite simple to follow these
>>> changes.
>>>
>>> For dispcc I don't know what to do with this line.
>>>
>>> /* Enable clock gating for MDP clocks */
>>> regmap_update_bits(regmap, DISP_CC_MISC_CMD, 0x10, 0x10);
>>
>> Use clk_regs_configure() callback to set this bit.
>
> Got it, found an example on the lists.
>
>>
>>>
>>> Do I just keep the regmap references in this probe function and just
>>> move the clk_lucid_ole_pll_configure & qcom_branch_set_clk_en to the
>>> config struct?
>>>
>>> And similar for gcc, I can move the qcom_branch_set_clk_en calls there
>>> but the qcom_cc_register_rcg_dfs needs to be kept.
>>
>> Would you mind extnding struct qcom_cc_desc with args to call
>> qcom_cc_register_rcg_dfs() and call it from qcom_cc_really_probe()?
>
> Something like this? Not quite sure when (in what order) this should be
> called, is that place fine?
>
> I'd include a patch then in the v2 of this series.
>
> diff --git a/drivers/clk/qcom/common.c b/drivers/clk/qcom/common.c
> index b3838d885db2..d53f290c6121 100644
> --- a/drivers/clk/qcom/common.c
> +++ b/drivers/clk/qcom/common.c
> @@ -390,6 +390,14 @@ int qcom_cc_really_probe(struct device *dev,
> goto put_rpm;
> }
>
> + if (desc->dfs_rcgs && desc->num_dfs_rcgs) {
> + ret = qcom_cc_register_rcg_dfs(regmap,
> + desc->dfs_rcgs,
> + desc->num_dfs_rcgs);
> + if (ret)
> + goto put_rpm;
> + }
These were previously registered a bit earlier, but this should
be good as well
Konrad
prev parent reply other threads:[~2025-07-01 15:19 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-25 9:12 [PATCH 00/10] Add clock drivers for SM7635 Luca Weiss
2025-06-25 9:12 ` [PATCH 01/10] dt-bindings: clock: qcom: document the SM7635 Global Clock Controller Luca Weiss
2025-06-25 9:12 ` [PATCH 02/10] clk: qcom: Add Global Clock controller (GCC) driver for SM7635 Luca Weiss
2025-06-25 9:12 ` [PATCH 03/10] dt-bindings: clock: qcom: document the SM7635 Camera Clock Controller Luca Weiss
2025-06-25 9:12 ` [PATCH 04/10] clk: qcom: Add Camera Clock controller (CAMCC) driver for SM7635 Luca Weiss
2025-06-25 9:12 ` [PATCH 05/10] dt-bindings: clock: qcom: document the SM7635 Display Clock Controller Luca Weiss
2025-06-25 9:12 ` [PATCH 06/10] clk: qcom: Add Display Clock controller (DISPCC) driver for SM7635 Luca Weiss
2025-06-25 9:12 ` [PATCH 07/10] dt-bindings: clock: qcom: document the SM7635 GPU Clock Controller Luca Weiss
2025-06-25 9:12 ` [PATCH 08/10] clk: qcom: Add Graphics Clock controller (GPUCC) driver for SM7635 Luca Weiss
2025-06-25 20:07 ` kernel test robot
2025-06-25 9:12 ` [PATCH 09/10] dt-bindings: clock: qcom: document the SM7635 Video Clock Controller Luca Weiss
2025-06-25 9:12 ` [PATCH 10/10] clk: qcom: Add Video Clock controller (VIDEOCC) driver for SM7635 Luca Weiss
2025-06-27 15:10 ` [PATCH 00/10] Add clock drivers " Konrad Dybcio
2025-06-27 15:14 ` Luca Weiss
2025-06-30 8:01 ` Luca Weiss
2025-07-01 11:16 ` Dmitry Baryshkov
2025-07-01 13:42 ` Luca Weiss
2025-07-01 15:19 ` Konrad Dybcio [this message]
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=24e4241e-d8a1-41c7-b0f3-3ec01b4375ae@oss.qualcomm.com \
--to=konrad.dybcio@oss.qualcomm.com \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luca.weiss@fairphone.com \
--cc=mturquette@baylibre.com \
--cc=phone-devel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=~postmarketos/upstreaming@lists.sr.ht \
/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;
as well as URLs for NNTP newsgroup(s).