linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.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
Subject: Re: [PATCH v3 01/11] clk: qcom: common: Add support to register rcg dfs in qcom_cc_really_probe
Date: Tue, 15 Jul 2025 11:05:12 +0200	[thread overview]
Message-ID: <03242c48-beb9-4ec1-8659-0cb8db9ef37d@oss.qualcomm.com> (raw)
In-Reply-To: <20250715-sm7635-clocks-v3-1-18f9faac4984@fairphone.com>

On 7/15/25 9:19 AM, 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 | 10 ++++++++++
>  drivers/clk/qcom/common.h |  2 ++
>  2 files changed, 12 insertions(+)
> 
> diff --git a/drivers/clk/qcom/common.c b/drivers/clk/qcom/common.c
> index b3838d885db25f183979576e5c685c07dc6a7049..37c3008e6c1be1f083d0093d2659e31dd7978497 100644
> --- a/drivers/clk/qcom/common.c
> +++ b/drivers/clk/qcom/common.c
> @@ -390,6 +390,16 @@ int qcom_cc_really_probe(struct device *dev,
>  			goto put_rpm;
>  	}
>  
> +	if (desc->driver_data &&
> +	    desc->driver_data->dfs_rcgs &&
> +	    desc->driver_data->num_dfs_rcgs) {

I suppose the last check isn't strictly necessary but it makes
sense to the reader so I'm not asking for a resend because of
that

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

> +		ret = qcom_cc_register_rcg_dfs(regmap,
> +					       desc->driver_data->dfs_rcgs,
> +					       desc->driver_data->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..953c91f7b14502546d8ade0dccc4790fcbb53ddb 100644
> --- a/drivers/clk/qcom/common.h
> +++ b/drivers/clk/qcom/common.h
> @@ -30,6 +30,8 @@ struct qcom_cc_driver_data {
>  	size_t num_alpha_plls;
>  	u32 *clk_cbcrs;
>  	size_t num_clk_cbcrs;
> +	const struct clk_rcg_dfs_data *dfs_rcgs;
> +	size_t num_dfs_rcgs;
>  	void (*clk_regs_configure)(struct device *dev, struct regmap *regmap);
>  };
>  
> 

  reply	other threads:[~2025-07-15  9:05 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-15  7:19 [PATCH v3 00/11] Add clock drivers for Milos Luca Weiss
2025-07-15  7:19 ` [PATCH v3 01/11] clk: qcom: common: Add support to register rcg dfs in qcom_cc_really_probe Luca Weiss
2025-07-15  9:05   ` Konrad Dybcio [this message]
2025-07-15  7:19 ` [PATCH v3 02/11] dt-bindings: clock: qcom: document the Milos Global Clock Controller Luca Weiss
2025-07-15  7:19 ` [PATCH v3 03/11] clk: qcom: Add Global Clock controller (GCC) driver for Milos Luca Weiss
2025-07-15  7:19 ` [PATCH v3 04/11] dt-bindings: clock: qcom: document the Milos Camera Clock Controller Luca Weiss
2025-07-15  7:19 ` [PATCH v3 05/11] clk: qcom: Add Camera Clock controller (CAMCC) driver for Milos Luca Weiss
2025-07-15  7:19 ` [PATCH v3 06/11] dt-bindings: clock: qcom: document the Milos Display Clock Controller Luca Weiss
2025-07-15  7:19 ` [PATCH v3 07/11] clk: qcom: Add Display Clock controller (DISPCC) driver for Milos Luca Weiss
2025-07-15  7:19 ` [PATCH v3 08/11] dt-bindings: clock: qcom: document the Milos GPU Clock Controller Luca Weiss
2025-07-15  7:19 ` [PATCH v3 09/11] clk: qcom: Add Graphics Clock controller (GPUCC) driver for Milos Luca Weiss
2025-07-15  7:19 ` [PATCH v3 10/11] dt-bindings: clock: qcom: document the Milos Video Clock Controller Luca Weiss
2025-07-15  7:19 ` [PATCH v3 11/11] clk: qcom: Add Video Clock controller (VIDEOCC) driver for Milos Luca Weiss
2025-07-17  4:31 ` [PATCH v3 00/11] Add clock drivers " Bjorn Andersson

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=03242c48-beb9-4ec1-8659-0cb8db9ef37d@oss.qualcomm.com \
    --to=konrad.dybcio@oss.qualcomm.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=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;
as well as URLs for NNTP newsgroup(s).