From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Imran Shaik <quic_imrashai@quicinc.com>,
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:45:19 +0300 [thread overview]
Message-ID: <CAA8EJprAMjHtBTdymmX8ARC0ts8=hn7Eme_CREg8=7_gmpzgPQ@mail.gmail.com> (raw)
In-Reply-To: <34216857-170c-45d4-8f6d-987573269215@kernel.org>
On Mon, 21 Oct 2024 at 18:11, Krzysztof Kozlowski <krzk@kernel.org> 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.
I think adding enum / define just for the sake of the match data is an
overkill. The driver checks for the compatible, tunes clock tree,
registers it and then it's done. There is no scalability issue - IOW
there are not so many compatible strings being handled by the driver,
the is_compatible check is limited to a single point, etc.
>
> > 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.
> >
>
> Best regards,
> Krzysztof
>
--
With best wishes
Dmitry
next prev parent reply other threads:[~2024-10-22 9:45 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
2024-10-22 12:38 ` Krzysztof Kozlowski
2024-10-22 9:45 ` Dmitry Baryshkov [this message]
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='CAA8EJprAMjHtBTdymmX8ARC0ts8=hn7Eme_CREg8=7_gmpzgPQ@mail.gmail.com' \
--to=dmitry.baryshkov@linaro.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.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_imrashai@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;
as well as URLs for NNTP newsgroup(s).