From: Imran Shaik <quic_imrashai@quicinc.com>
To: Krzysztof Kozlowski <krzk@kernel.org>,
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
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>,
Ajit Pandey <quic_ajipan@quicinc.com>,
Taniya Das <quic_tdas@quicinc.com>,
Jagadeesh Kona <quic_jkona@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>
Subject: Re: [PATCH 2/6] clk: qcom: Add support for GPU Clock Controller on QCS8300
Date: Tue, 22 Oct 2024 12:04:09 +0530 [thread overview]
Message-ID: <36bfe493-8a85-4add-93e3-650b002636df@quicinc.com> (raw)
In-Reply-To: <34216857-170c-45d4-8f6d-987573269215@kernel.org>
On 10/21/2024 8:41 PM, Krzysztof Kozlowski wrote:
> On 21/10/2024 12:56, Dmitry Baryshkov wrote:
>>>> { }
>>>> };
>>>> @@ -596,6 +635,14 @@ static int gpu_cc_sa8775p_probe(struct platform_device *pdev)
>>>> if (IS_ERR(regmap))
>>>> return PTR_ERR(regmap);
>>>>
>>>> + if (of_device_is_compatible(pdev->dev.of_node, "qcom,qcs8300-gpucc")) {
>>>
>>> Why we cannot use match data? Seeing compatibles in the code is
>>> unexpected and does not scale.
>>
>> Because using match data doesn't scale in such cases. We have been using
>
> I don't understand how it could not scale. That's the entire point of
> match data - scaling.
>
>> compatibles to patch clock trees for the platforms for quite a while.
>> You can see that each of the "tunings" is slightly different. From my
>
>
> You have one driver, where are these tunings which are supposed to be
> different? You need here only enum or define, in the simplest choice.
>
>> point of view, this approach provides a nice balance between having a
>> completely duplicate driver and having a driver which self-patches the
>> tree.
>
> How duplicate driver got into this? I don't think we talk about the
> same. I meant ID table match data.
>>
I agree with Dmitry. If I understand correctly, to add match data
support, we need to define the gpu_cc_qcs8300_clocks struct by
duplicating the entries from gpu_cc_sa8775p_clocks and then adding the
additional qcs8300 clocks. The compatible approach is simpler and used
across most existing platforms.
Thanks,
Imran
>
> Best regards,
> Krzysztof
>
next prev parent reply other threads:[~2024-10-22 6:34 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-18 11:12 [PATCH 0/6] Add support for GPUCC, CAMCC and VIDEOCC on Qualcomm QCS8300 platform Imran Shaik
2024-10-18 11:12 ` [PATCH 1/6] dt-bindings: clock: qcom: Add GPU clocks for QCS8300 Imran Shaik
2024-10-21 7:54 ` Krzysztof Kozlowski
2024-10-22 4:30 ` Imran Shaik
2024-10-18 11:12 ` [PATCH 2/6] clk: qcom: Add support for GPU Clock Controller on QCS8300 Imran Shaik
2024-10-18 12:04 ` Dmitry Baryshkov
2024-10-21 7:56 ` Krzysztof Kozlowski
2024-10-21 10:56 ` Dmitry Baryshkov
2024-10-21 15:11 ` Krzysztof Kozlowski
2024-10-22 6:34 ` Imran Shaik [this message]
2024-10-22 12:38 ` Krzysztof Kozlowski
2024-10-22 9:45 ` Dmitry Baryshkov
2024-10-18 11:12 ` [PATCH 3/6] dt-bindings: clock: qcom: Add CAMCC clocks for QCS8300 Imran Shaik
2024-10-18 11:12 ` [PATCH 4/6] clk: qcom: Add support for Camera Clock Controller on QCS8300 Imran Shaik
2024-10-18 12:07 ` Dmitry Baryshkov
2024-10-18 11:12 ` [PATCH 5/6] dt-bindings: clock: qcom: Add QCS8300 video clock controller Imran Shaik
2024-10-21 18:16 ` Rob Herring
2024-10-22 4:31 ` Imran Shaik
2024-10-18 11:12 ` [PATCH 6/6] clk: qcom: Add support for Video Clock Controller on QCS8300 Imran Shaik
2024-10-18 12:08 ` Dmitry Baryshkov
2024-10-22 4:38 ` Imran Shaik
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=36bfe493-8a85-4add-93e3-650b002636df@quicinc.com \
--to=quic_imrashai@quicinc.com \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=quic_ajipan@quicinc.com \
--cc=quic_jkona@quicinc.com \
--cc=quic_skakitap@quicinc.com \
--cc=quic_tdas@quicinc.com \
--cc=robh@kernel.org \
--cc=sboyd@kernel.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®