Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Ziyue Zhang" <ziyue.zhang@oss.qualcomm.com>
Cc: linux-phy@lists.infradead.org, neil.armstrong@linaro.org,
	olteanv@gmail.com, devicetree@vger.kernel.org, robh@kernel.org,
	conor+dt@kernel.org, vkoul@kernel.org
Subject: Re: [PATCH v1 2/4] phy: qcom: qmp-pcie: Add qref and refgen regulator vote for QCS8300 and SA8775p PHY
Date: Mon, 10 Aug 2026 11:37:16 +0000	[thread overview]
Message-ID: <20260810113717.035C71F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260810112735.1326807-3-ziyue.zhang@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] The patch mistakenly modifies `sm8450_qmp_gen4x2_pciephy_cfg` instead of `qcs8300_qmp_gen4x2_pciephy_cfg`, which breaks PCIe PHY probe on SM8450 and fails to apply the intended fix for QCS8300.
- [Medium] The driver unconditionally requires `refgen-supply` for SA8775P, but the DT binding schema explicitly omits it from the required properties for SA8775P.
--

--- Patch [2]: [PATCH v1 2/4] phy: qcom: qmp-pcie: Add qref and refgen regulator vote for QCS8300 and SA8775p PHY ---
commit c5c33c8f1974732f049e9666bff7aa68ba984073
Author: Ziyue Zhang <ziyue.zhang@oss.qualcomm.com>

phy: qcom: qmp-pcie: Add qref and refgen regulator vote for QCS8300 and SA8775p PHY

This commit adds a new sa8775p_qmp_phy_vreg_l regulator list containing 
additional supplies to support QCS8300 and SA8775p PCIe PHY configurations. 
It updates the regulator lists for the relevant PHY configurations to apply 
a hardware workaround without affecting SM8550.

> diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c
> index d3effad7a074b..b60fee762dabe 100644
> --- a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c
> +++ b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c
[ ... ]
> @@ -4394,8 +4398,8 @@ static const struct qmp_phy_cfg sm8450_qmp_gen4x2_pciephy_cfg = {
>  
>  	.reset_list		= sdm845_pciephy_reset_l,
>  	.num_resets		= ARRAY_SIZE(sdm845_pciephy_reset_l),
> -	.vreg_list		= qmp_phy_vreg_l,
> -	.num_vregs		= ARRAY_SIZE(qmp_phy_vreg_l),
> +	.vreg_list		= sa8775p_qmp_phy_vreg_l,
> +	.num_vregs		= ARRAY_SIZE(sa8775p_qmp_phy_vreg_l),
>  	.regs			= pciephy_v5_regs_layout,

[Severity: High]
The commit message mentions updating the QCS8300 configuration, but this
modifies sm8450_qmp_gen4x2_pciephy_cfg instead. 

Will this cause SM8450 platforms to fail probe since they will now request
5 regulators instead of the 2 normally provided by the DT? 

Also, does this mean qcs8300_qmp_gen4x2_pciephy_cfg remains unmodified and
misses the intended hardware workaround?

[ ... ]
> @@ -4563,8 +4567,8 @@ static const struct qmp_phy_cfg sa8775p_qmp_gen4x2_pciephy_cfg = {
>  
>  	.reset_list		= sdm845_pciephy_reset_l,
>  	.num_resets		= ARRAY_SIZE(sdm845_pciephy_reset_l),
> -	.vreg_list		= qmp_phy_vreg_l,
> -	.num_vregs		= ARRAY_SIZE(qmp_phy_vreg_l),
> +	.vreg_list		= sa8775p_qmp_phy_vreg_l,
> +	.num_vregs		= ARRAY_SIZE(sa8775p_qmp_phy_vreg_l),
>  	.regs			= pciephy_v5_regs_layout,

[Severity: Medium]
This unconditionally requires the refgen supply for the SA8775P PHY, but
the DT binding schema explicitly omits refgen-supply from the required
properties for SA8775P.

If an SA8775P platform boots with a compliant device tree that omits the
optional refgen-supply, will the driver fail to probe here when fetching
the bulk regulators?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260810112735.1326807-1-ziyue.zhang@oss.qualcomm.com?part=2

  reply	other threads:[~2026-08-10 11:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-10 11:27 [PATCH v1 0/4] Add qref and refgen regulator support for QCS8300 and SA8775p PCIe PHYs Ziyue Zhang
2026-08-10 11:27 ` [PATCH v1 1/4] dt-bindings: phy: qcom,sc8280xp-qmp-pcie-phy: Add vdda-refgen and refgen supply properties Ziyue Zhang
2026-08-10 11:27 ` [PATCH v1 2/4] phy: qcom: qmp-pcie: Add qref and refgen regulator vote for QCS8300 and SA8775p PHY Ziyue Zhang
2026-08-10 11:37   ` sashiko-bot [this message]
2026-08-10 11:27 ` [PATCH v1 3/4] arm64: dts: qcom: qcs8300: Add qref and refgen supply for PCIe PHYs Ziyue Zhang
2026-08-10 11:40   ` sashiko-bot
2026-08-10 11:27 ` [PATCH v1 4/4] arm64: dts: qcom: sa8775p: " Ziyue Zhang
2026-08-10 11:40   ` 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=20260810113717.035C71F00A3A@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=neil.armstrong@linaro.org \
    --cc=olteanv@gmail.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=vkoul@kernel.org \
    --cc=ziyue.zhang@oss.qualcomm.com \
    /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