From: sashiko-bot@kernel.org
To: "Jagadeesh Kona" <jagadeesh.kona@oss.qualcomm.com>
Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 4/4] clk: qcom: gcc-glymur: use shared ops for GCC UFS RCGs
Date: Fri, 04 Sep 2026 19:02:24 +0000 [thread overview]
Message-ID: <20260904190225.1D6681F00A3D@smtp.kernel.org> (raw)
In-Reply-To: <20260905-glymur-ufs-clk-changes-v1-4-cdff2c67a8c2@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
Pre-existing issues:
- [High] The patch fixes a UFS GDSC hang for `gcc-glymur.c` by using `clk_rcg2_shared_ops` to park UFS RCGs at XO during init. However, identical UFS RCGs in sibling drivers (`gcc-eliza.c`, `gcc-kaanapali.c`, and others) still use `clk_rcg2_shared_no_init_park_ops` and remain vulnerable to the same GDSC wedge issue.
--
commit ea0c46ac321975e91a07a59d21b631f1f46de735
Author: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
clk: qcom: gcc-glymur: use shared ops for GCC UFS RCGs
This patch switches GCC UFS RCGs in the gcc-glymur driver to use
clk_rcg2_shared_ops instead of clk_rcg2_shared_no_init_park_ops. This ensures
the clocks are parked at XO during registration, which is required for the UFS
GDSC power-on sequence.
> diff --git a/drivers/clk/qcom/gcc-glymur.c b/drivers/clk/qcom/gcc-glymur.c
> index a47a2c6b961ba..1957c847568af 100644
> --- a/drivers/clk/qcom/gcc-glymur.c
> +++ b/drivers/clk/qcom/gcc-glymur.c
> @@ -2327,7 +2327,7 @@ static struct clk_rcg2 gcc_ufs_phy_axi_clk_src = {
> .parent_data = gcc_parent_data_6,
> .num_parents = ARRAY_SIZE(gcc_parent_data_6),
> .flags = CLK_SET_RATE_PARENT,
> - .ops = &clk_rcg2_shared_no_init_park_ops,
> + .ops = &clk_rcg2_shared_ops,
[Severity: High]
This is a pre-existing issue, but this commit appears to only fix the UFS GDSC
hang for gcc-glymur.c, leaving identical UFS RCGs in sibling drivers vulnerable
to the same problem.
For example, in drivers/clk/qcom/gcc-eliza.c:
static struct clk_rcg2 gcc_ufs_phy_axi_clk_src = {
...
.ops = &clk_rcg2_shared_no_init_park_ops,
};
And similarly in drivers/clk/qcom/gcc-kaanapali.c:
static struct clk_rcg2 gcc_ufs_phy_axi_clk_src = {
...
.ops = &clk_rcg2_shared_no_init_park_ops,
};
Since these drivers share the same hardware IP design and define the exact same
gcc_ufs_phy_gdsc and RCGs, won't they suffer from the identical wedge failure
during UFS controller probe if the bootloader leaves the clocks in an unparked,
off state?
Could this fix be extended to the sibling SoC drivers to prevent UFS
initialization failures across the subsystem?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260905-glymur-ufs-clk-changes-v1-0-cdff2c67a8c2@oss.qualcomm.com?part=4
next prev parent reply other threads:[~2026-09-04 19:02 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-04 18:50 [PATCH 0/4] clk: qcom: glymur: Add rpmh LNBB clks support and update UFS clk ops Jagadeesh Kona
2026-09-04 18:50 ` [PATCH 1/4] dt-bindings: clock: qcom: Add TCSR_UFS_CLKREF_EN definition Jagadeesh Kona
2026-09-07 7:58 ` Konrad Dybcio
2026-09-09 7:30 ` Krzysztof Kozlowski
2026-09-11 15:11 ` Jagadeesh Kona
2026-09-04 18:50 ` [PATCH 2/4] clk: qcom: rpmhcc: Add LNBB clocks support for Glymur Jagadeesh Kona
2026-09-05 5:52 ` Abel Vesa
2026-09-04 18:50 ` [PATCH 3/4] clk: qcom: gcc-glymur: Use clk_regmap_phy_mux_ops for GCC UFS muxes Jagadeesh Kona
2026-09-05 5:49 ` Abel Vesa
2026-09-07 7:59 ` Konrad Dybcio
2026-09-04 18:50 ` [PATCH 4/4] clk: qcom: gcc-glymur: use shared ops for GCC UFS RCGs Jagadeesh Kona
2026-09-04 19:02 ` sashiko-bot [this message]
2026-09-05 5:45 ` Abel Vesa
2026-09-07 8:02 ` 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=20260904190225.1D6681F00A3D@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jagadeesh.kona@oss.qualcomm.com \
--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;
as well as URLs for NNTP newsgroup(s).