From: Konrad Dybcio <konrad.dybcio@linaro.org>
To: Pavan Kondeti <quic_pkondeti@quicinc.com>,
Rohit Agarwal <quic_rohiagar@quicinc.com>
Cc: agross@kernel.org, andersson@kernel.org, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
rafael@kernel.org, viresh.kumar@linaro.org, tglx@linutronix.de,
maz@kernel.org, mani@kernel.org, robimarko@gmail.com,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org
Subject: Re: [PATCH v3 4/5] dt-bindings: cpufreq: cpufreq-qcom-hw: Add SDX75 compatible
Date: Fri, 9 Jun 2023 11:17:08 +0200 [thread overview]
Message-ID: <f44293c7-fce9-e7a3-2a02-7ad5f7980e81@linaro.org> (raw)
In-Reply-To: <20230609050052.GA472607@hu-pkondeti-hyd.qualcomm.com>
On 9.06.2023 07:00, Pavan Kondeti wrote:
> On Wed, Jun 07, 2023 at 05:17:48PM +0530, Rohit Agarwal wrote:
>> Add compatible for EPSS CPUFREQ-HW on SDX75.
>>
>> Signed-off-by: Rohit Agarwal <quic_rohiagar@quicinc.com>
>> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
>> ---
>> Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml b/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml
>> index a6b3bb8..866ed2d 100644
>> --- a/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml
>> +++ b/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml
>> @@ -36,6 +36,7 @@ properties:
>> - qcom,sa8775p-cpufreq-epss
>> - qcom,sc7280-cpufreq-epss
>> - qcom,sc8280xp-cpufreq-epss
>> + - qcom,sdx75-cpufreq-epss
>> - qcom,sm6375-cpufreq-epss
>> - qcom,sm8250-cpufreq-epss
>> - qcom,sm8350-cpufreq-epss
>
> This is a very basic question, not completely related to this patch.
> Apologies in advance.
>
> What is the rationale for adding a new soc string under compatible and
> using it in the new soc device tree? Is it meant for documentation purpose?
> i.e one know what all SoCs / boards supported by this device node.
It's two-fold:
1. The device tree describes the hardware, and for lack of better terms (e.g.
an SoC-specific version number of the block that is identical to all other
implementations of that revision on all SoCs that use it), we tend to
associate it with the SoC it's been (first) found on.
2. In case we ever needed to introduce a SoC-specific quirk, we can just add
an of_is_compatible-sorta check to the driver and not have to update the
device trees. This is very important for keeping backwards compatibility,
as it's assumed that not everybody may be running the latest one. This
means we have to avoid ABI breaks (unless we have *very* good reasons, like
"this would have never worked anyway" or "it was not described properly
and worked on this occasion by pure luck")
Konrad
>
> I ask this because, we don't add these compatible strings in the driver
> [1] which means there is not SoC specific handling and there is no
> module load assist (module alias matching by user space based on device
> presence).
>
> Thanks,
> Pavan
next prev parent reply other threads:[~2023-06-09 9:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-07 11:47 [PATCH v3 0/5] Add devicetree support for SDX75 Modem and IDP Rohit Agarwal
2023-06-07 11:47 ` [PATCH v3 1/5] dt-bindings: arm: qcom: Document SDX75 platform and boards Rohit Agarwal
2023-06-07 11:47 ` [PATCH v3 2/5] dt-bindings: firmware: scm: Add compatible for SDX75 Rohit Agarwal
2023-06-07 11:47 ` [PATCH v3 3/5] dt-bindings: interrupt-controller: Add SDX75 PDC compatible Rohit Agarwal
2023-06-07 11:47 ` [PATCH v3 4/5] dt-bindings: cpufreq: cpufreq-qcom-hw: Add SDX75 compatible Rohit Agarwal
2023-06-07 12:09 ` Krzysztof Kozlowski
2023-06-09 5:00 ` Pavan Kondeti
2023-06-09 9:17 ` Konrad Dybcio [this message]
2023-06-09 9:29 ` Pavan Kondeti
2023-06-07 11:47 ` [PATCH v3 5/5] arm64: dts: qcom: Add SDX75 platform and IDP board support Rohit Agarwal
2023-06-07 12:13 ` Krzysztof Kozlowski
2023-06-09 6:16 ` Rohit Agarwal
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=f44293c7-fce9-e7a3-2a02-7ad5f7980e81@linaro.org \
--to=konrad.dybcio@linaro.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=mani@kernel.org \
--cc=maz@kernel.org \
--cc=quic_pkondeti@quicinc.com \
--cc=quic_rohiagar@quicinc.com \
--cc=rafael@kernel.org \
--cc=robh+dt@kernel.org \
--cc=robimarko@gmail.com \
--cc=tglx@linutronix.de \
--cc=viresh.kumar@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;
as well as URLs for NNTP newsgroup(s).