From: sashiko-bot@kernel.org
To: "Qiang Yu" <qiang.yu@oss.qualcomm.com>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v5 5/7] arm64: dts: qcom: glymur: Add QREF regulator supplies to TCSR
Date: Tue, 02 Jun 2026 08:48:27 +0000 [thread overview]
Message-ID: <20260602084828.4C5271F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260602-tcsr_qref_0527-v5-5-8ea174a59d7e@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] Device Tree ABI breakage and regression in driver probing for older DTBs.
--
commit c88577468046d0a4edaa8b972228d1fb0443b125
Author: Qiang Yu <qiang.yu@oss.qualcomm.com>
arm64: dts: qcom: glymur: Add QREF regulator supplies to TCSR
The TCSR clkref_en clocks gate the QREF block which provides reference
clocks to the PCIe PHYs. Wire up the LDO supplies required by the QREF
and refgen blocks on the CRD board.
> diff --git a/Documentation/devicetree/bindings/clock/qcom,glymur-tcsr.yaml b/Documentation/devicetree/bindings/clock/qcom,glymur-tcsr.yaml
> new file mode 100644
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/clock/qcom,glymur-tcsr.yaml
[ ... ]
> +allOf:
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: qcom,glymur-tcsr
> + then:
> + required:
> + - vdda-qrefrpt0-0p9-supply
[Severity: High]
Does making these new regulator supplies unconditionally required cause a
regression for Device Tree ABI compatibility?
Older device trees lacking these properties will fail schema validation.
[ ... ]
> diff --git a/drivers/clk/qcom/clk-ref.c b/drivers/clk/qcom/clk-ref.c
> new file mode 100644
> --- /dev/null
> +++ b/drivers/clk/qcom/clk-ref.c
[ ... ]
> +static int qcom_clk_ref_register(struct device *dev, struct regmap *regmap,
> + struct qcom_clk_ref *clk_refs,
> + const struct qcom_clk_ref_desc *descs,
> + size_t num_clk_refs)
> +{
[ ... ]
> + if (clk_ref->desc.num_regulators) {
> + clk_ref->regulators = devm_kcalloc(dev, clk_ref->desc.num_regulators,
> + sizeof(*clk_ref->regulators),
> + GFP_KERNEL);
> + if (!clk_ref->regulators)
> + return -ENOMEM;
> +
> + for (i = 0; i < clk_ref->desc.num_regulators; i++)
> + clk_ref->regulators[i].supply =
> + clk_ref->desc.regulator_names[i];
> +
> + ret = devm_regulator_bulk_get(dev, clk_ref->desc.num_regulators,
> + clk_ref->regulators);
> + if (ret)
> + return dev_err_probe(dev, ret,
> + "Failed to get regulators for %s\n",
> + clk_ref->desc.name);
[Severity: High]
Since older device trees won't have these regulator properties defined, will
this unconditional devm_regulator_bulk_get() cause probe to fail entirely?
If full constraints are enforced without globally enabled dummy regulators,
devm_regulator_bulk_get() will return -ENODEV and cause a regression where the
TCSR clock controller fails to probe for systems booting with an older DTB.
> + }
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260602-tcsr_qref_0527-v5-0-8ea174a59d7e@oss.qualcomm.com?part=5
next prev parent reply other threads:[~2026-06-02 8:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-02 8:02 [PATCH v5 0/7] clk: qcom: Add common clkref support and migrate Glymur and Mahua Qiang Yu
2026-06-02 8:02 ` [PATCH v5 1/7] dt-bindings: clock: qcom: Move glymur TCSR to own binding and add mahua Qiang Yu
2026-06-02 8:16 ` sashiko-bot
2026-06-02 8:02 ` [PATCH v5 2/7] clk: qcom: Add generic clkref_en support Qiang Yu
2026-06-02 8:02 ` [PATCH v5 3/7] clk: qcom: tcsrcc-glymur: Migrate tcsr_pcie_N_clkref_en to clk_ref common helper Qiang Yu
2026-06-02 8:02 ` [PATCH v5 4/7] clk: qcom: tcsrcc-glymur: Add Mahua QREF regulator support Qiang Yu
2026-06-02 8:39 ` sashiko-bot
2026-06-02 8:02 ` [PATCH v5 5/7] arm64: dts: qcom: glymur: Add QREF regulator supplies to TCSR Qiang Yu
2026-06-02 8:48 ` sashiko-bot [this message]
2026-06-02 8:02 ` [PATCH v5 6/7] arm64: dts: qcom: mahua: " Qiang Yu
2026-06-02 8:02 ` [PATCH v5 7/7] arm64: dts: qcom: mahua: Switch pcie5_phy ref clock to RPMH_CXO_CLK Qiang Yu
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=20260602084828.4C5271F00893@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=qiang.yu@oss.qualcomm.com \
--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