mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jagadeesh Kona <quic_jkona@quicinc.com>
To: Luca Weiss <luca.weiss@fairphone.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>,
	Konrad Dybcio <konradybcio@kernel.org>
Cc: <~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>,
	Taniya Das <quic_tdas@quicinc.com>,
	Ajit Pandey <quic_ajipan@quicinc.com>,
	Imran Shaik <quic_imrashai@quicinc.com>
Subject: Re: [PATCH v2 01/11] clk: qcom: common: Add support to register rcg dfs in qcom_cc_really_probe
Date: Tue, 8 Jul 2025 11:04:46 +0530	[thread overview]
Message-ID: <64e27035-d124-470a-bc5b-66d254b6ff4f@quicinc.com> (raw)
In-Reply-To: <20250704-sm7635-clocks-v2-1-9e47a7c0d47f@fairphone.com>



On 7/4/2025 12:46 PM, Luca Weiss wrote:
> Add support to register the rcg dfs in qcom_cc_really_probe(). This
> allows users to move the call from the probe function to static
> properties.
> 
> Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
> ---
>  drivers/clk/qcom/common.c | 8 ++++++++
>  drivers/clk/qcom/common.h | 2 ++
>  2 files changed, 10 insertions(+)
> 
> diff --git a/drivers/clk/qcom/common.c b/drivers/clk/qcom/common.c
> index b3838d885db25f183979576e5c685c07dc6a7049..d53f290c6121f31d06cf244f72603b694966e216 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;
> +	}
> +
>  	cc->rclks = rclks;
>  	cc->num_rclks = num_clks;
>  
> diff --git a/drivers/clk/qcom/common.h b/drivers/clk/qcom/common.h
> index 0f4b2d40c65cf94de694226f63ca30f4181d0ce5..dbe7ebe5b8710fb03c1671ac9022e608a6aad35f 100644
> --- a/drivers/clk/qcom/common.h
> +++ b/drivers/clk/qcom/common.h
> @@ -43,6 +43,8 @@ struct qcom_cc_desc {
>  	size_t num_gdscs;
>  	struct clk_hw **clk_hws;
>  	size_t num_clk_hws;
> +	const struct clk_rcg_dfs_data *dfs_rcgs;
> +	size_t num_dfs_rcgs;

Since all other probe configurations are added in qcom_cc_driver_data struct, it is better to
add rcg dfs data also to qcom_cc_driver_data struct instead of qcom_cc_desc.

Thanks,
Jagadeesh

>  	const struct qcom_icc_hws_data *icc_hws;
>  	size_t num_icc_hws;
>  	unsigned int icc_first_node_id;
> 

  parent reply	other threads:[~2025-07-08  5:35 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-04  7:16 [PATCH v2 00/11] Add clock drivers for Milos (SM7635) Luca Weiss
2025-07-04  7:16 ` [PATCH v2 01/11] clk: qcom: common: Add support to register rcg dfs in qcom_cc_really_probe Luca Weiss
2025-07-04 11:06   ` Konrad Dybcio
2025-07-08  5:34   ` Jagadeesh Kona [this message]
2025-07-09 11:48     ` Luca Weiss
2025-07-14 11:04       ` Jagadeesh Kona
2025-07-14 12:32         ` Dmitry Baryshkov
2025-07-04  7:16 ` [PATCH v2 02/11] dt-bindings: clock: qcom: document the Milos Global Clock Controller Luca Weiss
2025-07-04 12:28   ` Krzysztof Kozlowski
2025-07-04  7:16 ` [PATCH v2 03/11] clk: qcom: Add Global Clock controller (GCC) driver for Milos Luca Weiss
2025-07-04 11:51   ` Konrad Dybcio
2025-07-04  7:16 ` [PATCH v2 04/11] dt-bindings: clock: qcom: document the Milos Camera Clock Controller Luca Weiss
2025-07-04 12:29   ` Krzysztof Kozlowski
2025-07-04  7:16 ` [PATCH v2 05/11] clk: qcom: Add Camera Clock controller (CAMCC) driver for Milos Luca Weiss
2025-07-04 11:52   ` Konrad Dybcio
2025-07-04  7:16 ` [PATCH v2 06/11] dt-bindings: clock: qcom: document the Milos Display Clock Controller Luca Weiss
2025-07-04 12:29   ` Krzysztof Kozlowski
2025-07-04  7:16 ` [PATCH v2 07/11] clk: qcom: Add Display Clock controller (DISPCC) driver for Milos Luca Weiss
2025-07-04 11:53   ` Konrad Dybcio
2025-07-04  7:17 ` [PATCH v2 08/11] dt-bindings: clock: qcom: document the Milos GPU Clock Controller Luca Weiss
2025-07-04 12:30   ` Krzysztof Kozlowski
2025-07-04  7:17 ` [PATCH v2 09/11] clk: qcom: Add Graphics Clock controller (GPUCC) driver for Milos Luca Weiss
2025-07-04 14:13   ` Dmitry Baryshkov
2025-07-04  7:17 ` [PATCH v2 10/11] dt-bindings: clock: qcom: document the Milos Video Clock Controller Luca Weiss
2025-07-04 12:30   ` Krzysztof Kozlowski
2025-07-04  7:17 ` [PATCH v2 11/11] clk: qcom: Add Video Clock controller (VIDEOCC) driver for Milos Luca Weiss
2025-07-04 11:54   ` Konrad Dybcio

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=64e27035-d124-470a-bc5b-66d254b6ff4f@quicinc.com \
    --to=quic_jkona@quicinc.com \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --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=quic_ajipan@quicinc.com \
    --cc=quic_imrashai@quicinc.com \
    --cc=quic_tdas@quicinc.com \
    --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

all inboxes | Powered by JetHome®