Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Konrad Dybcio" <konradybcio@kernel.org>
Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 3/4] clk: qcom: gcc-glymur: Set FORCE_MEM_ON for USB4 uC clocks
Date: Mon, 23 Nov 2026 18:43:11 +0000	[thread overview]
Message-ID: <sashiko-outbox-229859@kernel.org> (raw)
In-Reply-To: <20261123-topic-usb4_clks-v1-3-531ab5635c03@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] clk: qcom: gcc-glymur: wrong USB4 clocks in
  clk_glymur_regs_configure()
--

commit 81f271b4a5a581eaebcc7fd24442cd3d1ce247ae
Author: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

clk: qcom: gcc-glymur: Set FORCE_MEM_ON for USB4 uC clocks

This commit sets CBCR_FORCE_MEM_CORE_ON on three USB4 clock branches in
clk_glymur_regs_configure() to retain USB4 uC RAM contents on Glymur and
Mahua.

> diff --git a/drivers/clk/qcom/gcc-glymur.c b/drivers/clk/qcom/gcc-glymur.c
> index 031ed806a38ed..96d1c07348bcb 100644
> --- a/drivers/clk/qcom/gcc-glymur.c
> +++ b/drivers/clk/qcom/gcc-glymur.c
> @@ -8542,6 +8542,10 @@ static void clk_glymur_regs_configure(struct device *dev, struct regmap *regmap)
>  	qcom_branch_set_force_periph_on(regmap, gcc_pcie_5_pipe_clk, true);
>  	qcom_branch_set_force_mem_core(regmap, gcc_pcie_6_pipe_clk, true);
>  	qcom_branch_set_force_periph_on(regmap, gcc_pcie_6_pipe_clk, true);
> +
> +	qcom_branch_set_force_mem_core(regmap, gcc_usb4_0_sys_clk, true);
> +	qcom_branch_set_force_mem_core(regmap, gcc_usb4_1_uc_hrr_clk, true);
> +	qcom_branch_set_force_mem_core(regmap, gcc_usb4_2_sys_clk, true);
>  }
>  
>  static const struct qcom_cc_driver_data gcc_glymur_driver_data = {

[Severity: High]
Should USB4 instances 0 and 2 pass gcc_usb4_0_uc_hrr_clk (0x2b06c) and
gcc_usb4_2_uc_hrr_clk (0xe006c) instead of gcc_usb4_0_sys_clk (0x2b05c)
and gcc_usb4_2_sys_clk (0xe005c)?  With sys_clk passed for controllers 0
and 2, their uC clocks never have CBCR_FORCE_MEM_CORE_ON set, leaving the
USB4 uC RAM contents unretained on those two controllers.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261123-topic-usb4_clks-v1-0-531ab5635c03@oss.qualcomm.com?part=3

  reply	other threads:[~2026-11-23 18:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 18:34 [PATCH 0/4] Glymur USB4 clock fixups Konrad Dybcio
2026-11-23 18:34 ` [PATCH 1/4] dt-bindings: clock: qcom,glymur-gcc: Add missing USB4 resets Konrad Dybcio
2026-11-23 18:34 ` [PATCH 2/4] clk: qcom: gcc-glymur: " Konrad Dybcio
2026-11-23 18:34 ` [PATCH 3/4] clk: qcom: gcc-glymur: Set FORCE_MEM_ON for USB4 uC clocks Konrad Dybcio
2026-11-23 18:43   ` sashiko-bot [this message]
2026-11-23 18:34 ` [PATCH 4/4] clk: qcom: gcc-glymur: Convert USB4 clocks to use phymux ops Konrad Dybcio
2026-11-23 18:57   ` sashiko-bot

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=sashiko-outbox-229859@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=konradybcio@kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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