From: Krzysztof Kozlowski <krzk@kernel.org>
To: Atanas Filipov <atanas.filipov@oss.qualcomm.com>
Cc: Georgi Djakov <djakov@kernel.org>,
linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
Gjorgji Rosikopulos <gjorgji.rosikopulos@oss.qualcomm.com>
Subject: Re: [PATCH v2 2/3] interconnect: qcom: Add CAMNOC interconnect provider driver
Date: Thu, 27 Aug 2026 11:28:05 +0200 [thread overview]
Message-ID: <d4473111-f9a5-4ebb-befe-c2d690c81009@kernel.org> (raw)
In-Reply-To: <20260827-adept-traditional-earwig-e2c8c6@quoll>
On 27/08/2026 11:25, Krzysztof Kozlowski wrote:
>> +static int qcom_camnoc_set(struct icc_node *src, struct icc_node *dst)
>> +{
>> + struct qcom_camnoc_icc_provider *cp =
>> + to_camnoc_provider(src->provider);
>> + unsigned long rate;
>> +
>> + /*
>> + * peak_bw is the aggregated max across all consumers (kBps).
>> + * Consumers encode the required clock frequency directly as kBps,
>> + * so the conversion is simply: rate_hz = peak_bw * 1000.
>> + * A vote of 0 means no requirement; leave the clock at its minimum.
>> + */
>> + rate = icc_units_to_bps(dst->peak_bw);
>> +
>> + return clk_set_rate(cp->clk, rate);
>
> This driver does nothing to the ICC hardware, no votes. It only
> translates kbps to Hz. This is not the purpose of ICC drivers.
>
> Looks heavily incomplete.
And another proof of uselessness of this driver is that your example DTS
references ICC path between camss components. Internal camss stuff does
not need ICC representation in DT.
Best regards,
Krzysztof
next prev parent reply other threads:[~2026-08-27 9:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-19 9:32 [PATCH v2 0/3] Add Qualcomm CAMNOC ICC provider Atanas Filipov
2026-08-19 9:32 ` [PATCH v2 1/3] dt-bindings: interconnect: Add Qualcomm CAMNOC ICC binding Atanas Filipov
2026-08-27 9:23 ` Krzysztof Kozlowski
2026-08-27 9:26 ` Krzysztof Kozlowski
2026-08-19 9:32 ` [PATCH v2 2/3] interconnect: qcom: Add CAMNOC interconnect provider driver Atanas Filipov
2026-08-19 9:41 ` sashiko-bot
2026-08-27 9:25 ` Krzysztof Kozlowski
2026-08-27 9:28 ` Krzysztof Kozlowski [this message]
2026-08-19 9:32 ` [PATCH v2 3/3] arm64: dts: qcom: sm8250: Add CAMNOC ICC provider node Atanas Filipov
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=d4473111-f9a5-4ebb-befe-c2d690c81009@kernel.org \
--to=krzk@kernel.org \
--cc=andersson@kernel.org \
--cc=atanas.filipov@oss.qualcomm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=djakov@kernel.org \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=gjorgji.rosikopulos@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=robh@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