mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Abel Vesa <abel.vesa@oss.qualcomm.com>,
	Bjorn Andersson <andersson@kernel.org>,
	Abel Vesa <abelvesa@kernel.org>, Stephen Boyd <sboyd@kernel.org>,
	Brian Masney <bmasney+clk@redhat.com>,
	Jerome Brunet <jbrunet+clk@baylibre.com>
Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 27/48] clk: qcom: gcc-sm6375: Use common clock controller probe data
Date: Fri, 18 Sep 2026 11:38:36 +0200	[thread overview]
Message-ID: <1070a7ca-1636-4b6f-af04-f7bb7829dcbb@oss.qualcomm.com> (raw)
In-Reply-To: <20260916-clk-qcom-rework-legacy-always-on-clocks-v1-27-25a24e50f82a@oss.qualcomm.com>

On 9/16/26 12:28 PM, Abel Vesa wrote:
> Move the always-on branch register offsets into a critical_cbcrs array
> and describe the DFS RCGs through qcom_cc_driver_data.
> 
> Move the configuration of GPLL10, GPLL11, GPLL8 and GPLL9 into the
> clk_regs_configure callback. This preserves the existing ordering of
> enabling the always-on branches before configuring these four PLLs.
> Using the alpha_plls array instead would configure the PLLs before the
> CBCR enables in the common probe path.
> 
> Use qcom_cc_probe() to perform the common initialization instead of
> open-coding it in the driver's probe.
> 
> Assisted-by: LLM
> Signed-off-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
> ---
>  drivers/clk/qcom/gcc-sm6375.c | 46 ++++++++++++++++++++++---------------------
>  1 file changed, 24 insertions(+), 22 deletions(-)
> 
> diff --git a/drivers/clk/qcom/gcc-sm6375.c b/drivers/clk/qcom/gcc-sm6375.c
> index f47dc2808095..d125243ac6cb 100644
> --- a/drivers/clk/qcom/gcc-sm6375.c
> +++ b/drivers/clk/qcom/gcc-sm6375.c
> @@ -3853,7 +3853,30 @@ static const struct regmap_config gcc_sm6375_regmap_config = {
>  	.fast_io = true,
>  };
>  
> +static const u32 gcc_sm6375_critical_cbcrs[] = {
> +	0x17028, /* GCC_CAMERA_XO_CLK */
> +	0x2b004, /* GCC_CPUSS_GNOC_CLK */
> +	0x1702c, /* GCC_DISP_XO_CLK */
> +};
> +
> +static void gcc_sm6375_regs_configure(struct device *dev, struct regmap *regmap)
> +{
> +	clk_lucid_pll_configure(&gpll10, regmap, &gpll10_config);
> +	clk_lucid_pll_configure(&gpll11, regmap, &gpll11_config);
> +	clk_lucid_pll_configure(&gpll8, regmap, &gpll8_config);
> +	clk_zonda_pll_configure(&gpll9, regmap, &gpll9_config);

This should use the alpha helpers instead

Konrad

  reply	other threads:[~2026-09-18  9:38 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-16 10:28 [PATCH 00/48] clk: qcom: Use common probe data for always-on clocks Abel Vesa
2026-09-16 10:28 ` [PATCH 01/48] clk: qcom: camcc-sa8775p: Use common probe handling " Abel Vesa
2026-09-16 10:28 ` [PATCH 02/48] clk: qcom: camcc-sc8280xp: " Abel Vesa
2026-09-16 10:28 ` [PATCH 03/48] clk: qcom: camcc-sm7150: " Abel Vesa
2026-09-16 10:28 ` [PATCH 04/48] clk: qcom: camcc-sm8150: " Abel Vesa
2026-09-16 10:28 ` [PATCH 05/48] clk: qcom: dispcc-sc7280: " Abel Vesa
2026-09-16 10:28 ` [PATCH 06/48] clk: qcom: dispcc-sc8280xp: " Abel Vesa
2026-09-16 10:28 ` [PATCH 07/48] clk: qcom: dispcc-sm4450: " Abel Vesa
2026-09-16 10:28 ` [PATCH 08/48] clk: qcom: dispcc-sm6115: " Abel Vesa
2026-09-16 10:28 ` [PATCH 09/48] clk: qcom: dispcc-sm7150: " Abel Vesa
2026-09-16 10:28 ` [PATCH 10/48] clk: qcom: dispcc-sm8250: " Abel Vesa
2026-09-16 10:28 ` [PATCH 11/48] clk: qcom: dispcc-sm8550: " Abel Vesa
2026-09-16 10:28 ` [PATCH 12/48] clk: qcom: dispcc-sm8750: " Abel Vesa
2026-09-16 10:28 ` [PATCH 13/48] clk: qcom: dispcc-x1e80100: " Abel Vesa
2026-09-16 10:28 ` [PATCH 14/48] clk: qcom: dispcc0-sa8775p: " Abel Vesa
2026-09-16 10:28 ` [PATCH 15/48] clk: qcom: dispcc1-sa8775p: " Abel Vesa
2026-09-16 10:28 ` [PATCH 16/48] clk: qcom: gcc-qcs615: Use common clock controller probe data Abel Vesa
2026-09-16 10:28 ` [PATCH 17/48] clk: qcom: gcc-qcs8300: " Abel Vesa
2026-09-16 10:28 ` [PATCH 18/48] clk: qcom: gcc-sa8775p: " Abel Vesa
2026-09-16 10:28 ` [PATCH 19/48] clk: qcom: gcc-sar2130p: " Abel Vesa
2026-09-16 10:28 ` [PATCH 20/48] clk: qcom: gcc-sc7180: " Abel Vesa
2026-09-16 10:28 ` [PATCH 21/48] clk: qcom: gcc-sc7280: " Abel Vesa
2026-09-16 10:28 ` [PATCH 22/48] clk: qcom: gcc-sc8280xp: " Abel Vesa
2026-09-16 10:28 ` [PATCH 23/48] clk: qcom: gcc-sdx55: " Abel Vesa
2026-09-16 10:28 ` [PATCH 24/48] clk: qcom: gcc-sdx65: " Abel Vesa
2026-09-16 10:28 ` [PATCH 25/48] clk: qcom: gcc-sdx75: " Abel Vesa
2026-09-16 10:28 ` [PATCH 26/48] clk: qcom: gcc-sm4450: " Abel Vesa
2026-09-16 10:28 ` [PATCH 27/48] clk: qcom: gcc-sm6375: " Abel Vesa
2026-09-18  9:38   ` Konrad Dybcio [this message]
2026-09-16 10:28 ` [PATCH 28/48] clk: qcom: gcc-sm7150: " Abel Vesa
2026-09-16 10:28 ` [PATCH 29/48] clk: qcom: gcc-sm8250: " Abel Vesa
2026-09-18  9:39   ` Konrad Dybcio
2026-09-16 10:28 ` [PATCH 30/48] clk: qcom: gcc-sm8350: " Abel Vesa
2026-09-16 10:28 ` [PATCH 31/48] clk: qcom: gcc-sm8450: " Abel Vesa
2026-09-16 10:28 ` [PATCH 32/48] clk: qcom: gcc-sm8550: " Abel Vesa
2026-09-16 10:28 ` [PATCH 33/48] clk: qcom: gcc-sm8650: " Abel Vesa
2026-09-16 10:28 ` [PATCH 34/48] clk: qcom: gcc-sm8750: " Abel Vesa
2026-09-16 10:28 ` [PATCH 35/48] clk: qcom: gcc-x1e80100: " Abel Vesa
2026-09-16 10:28 ` [PATCH 36/48] clk: qcom: gpucc-sar2130p: Use common probe handling for always-on clocks Abel Vesa
2026-09-16 10:28 ` [PATCH 37/48] clk: qcom: gpucc-sc7280: " Abel Vesa
2026-09-16 10:28 ` [PATCH 38/48] clk: qcom: gpucc-sc8280xp: " Abel Vesa
2026-09-16 10:28 ` [PATCH 39/48] clk: qcom: gpucc-sm4450: " Abel Vesa
2026-09-16 10:28 ` [PATCH 40/48] clk: qcom: gpucc-sm8550: " Abel Vesa
2026-09-16 10:28 ` [PATCH 41/48] clk: qcom: gpucc-x1e80100: " Abel Vesa
2026-09-16 10:28 ` [PATCH 42/48] clk: qcom: gpucc-x1p42100: " Abel Vesa
2026-09-16 10:28 ` [PATCH 43/48] clk: qcom: lpasscorecc-sc7180: " Abel Vesa
2026-09-16 10:29 ` [PATCH 44/48] clk: qcom: videocc-sa8775p: " Abel Vesa
2026-09-16 10:29 ` [PATCH 45/48] clk: qcom: videocc-sm6350: " Abel Vesa
2026-09-16 10:29 ` [PATCH 46/48] clk: qcom: videocc-sm7150: " Abel Vesa
2026-09-16 10:29 ` [PATCH 47/48] clk: qcom: videocc-sm8250: " Abel Vesa
2026-09-16 10:29 ` [PATCH 48/48] clk: qcom: videocc-sm8350: " Abel Vesa
2026-09-18  9:41 ` [PATCH 00/48] clk: qcom: Use common probe data " 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=1070a7ca-1636-4b6f-af04-f7bb7829dcbb@oss.qualcomm.com \
    --to=konrad.dybcio@oss.qualcomm.com \
    --cc=abel.vesa@oss.qualcomm.com \
    --cc=abelvesa@kernel.org \
    --cc=andersson@kernel.org \
    --cc=bmasney+clk@redhat.com \
    --cc=jbrunet+clk@baylibre.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.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

all inboxes | Powered by JetHome®