Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
* [PATCH] phy: qcom: qmp-pcie: drop bogus x1e80100 qref supply
@ 2025-04-29  7:54 Johan Hovold
  2025-04-29  8:01 ` Abel Vesa
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Johan Hovold @ 2025-04-29  7:54 UTC (permalink / raw)
  To: Vinod Koul
  Cc: Kishon Vijay Abraham I, Dmitry Baryshkov, Neil Armstrong,
	Abel Vesa, Qiang Yu, Konrad Dybcio, linux-arm-msm, linux-phy,
	linux-kernel, Johan Hovold

The PCIe PHYs on x1e80100 do not a have a qref supply so stop requesting
one. This also avoids the follow warning at boot:

	qcom-qmp-pcie-phy 1be0000.phy: supply vdda-qref not found, using dummy regulator

Fixes: e961ec81a39b ("phy: qcom: qmp: Add phy register and clk setting for x1e80100 PCIe3")
Cc: Qiang Yu <quic_qianyu@quicinc.com>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
 drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c
index c232b8fe9846..e5277ce9c136 100644
--- a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c
+++ b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c
@@ -4233,8 +4233,8 @@ static const struct qmp_phy_cfg x1e80100_qmp_gen4x8_pciephy_cfg = {
 
 	.reset_list		= sdm845_pciephy_reset_l,
 	.num_resets		= ARRAY_SIZE(sdm845_pciephy_reset_l),
-	.vreg_list		= sm8550_qmp_phy_vreg_l,
-	.num_vregs		= ARRAY_SIZE(sm8550_qmp_phy_vreg_l),
+	.vreg_list		= qmp_phy_vreg_l,
+	.num_vregs		= ARRAY_SIZE(qmp_phy_vreg_l),
 	.regs			= pciephy_v6_regs_layout,
 
 	.pwrdn_ctrl		= SW_PWRDN | REFCLK_DRV_DSBL,
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] phy: qcom: qmp-pcie: drop bogus x1e80100 qref supply
  2025-04-29  7:54 [PATCH] phy: qcom: qmp-pcie: drop bogus x1e80100 qref supply Johan Hovold
@ 2025-04-29  8:01 ` Abel Vesa
  2025-04-29  8:24 ` Qiang Yu
  2025-05-14 11:37 ` Vinod Koul
  2 siblings, 0 replies; 5+ messages in thread
From: Abel Vesa @ 2025-04-29  8:01 UTC (permalink / raw)
  To: Johan Hovold
  Cc: Vinod Koul, Kishon Vijay Abraham I, Dmitry Baryshkov,
	Neil Armstrong, Qiang Yu, Konrad Dybcio, linux-arm-msm, linux-phy,
	linux-kernel

On 25-04-29 09:54:40, Johan Hovold wrote:
> The PCIe PHYs on x1e80100 do not a have a qref supply so stop requesting
> one. This also avoids the follow warning at boot:
> 
> 	qcom-qmp-pcie-phy 1be0000.phy: supply vdda-qref not found, using dummy regulator
> 
> Fixes: e961ec81a39b ("phy: qcom: qmp: Add phy register and clk setting for x1e80100 PCIe3")
> Cc: Qiang Yu <quic_qianyu@quicinc.com>
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>

Reviewed-by: Abel Vesa <abel.vesa@linaro.org>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] phy: qcom: qmp-pcie: drop bogus x1e80100 qref supply
  2025-04-29  7:54 [PATCH] phy: qcom: qmp-pcie: drop bogus x1e80100 qref supply Johan Hovold
  2025-04-29  8:01 ` Abel Vesa
@ 2025-04-29  8:24 ` Qiang Yu
  2025-04-29  8:47   ` Johan Hovold
  2025-05-14 11:37 ` Vinod Koul
  2 siblings, 1 reply; 5+ messages in thread
From: Qiang Yu @ 2025-04-29  8:24 UTC (permalink / raw)
  To: Johan Hovold, Vinod Koul
  Cc: Kishon Vijay Abraham I, Dmitry Baryshkov, Neil Armstrong,
	Abel Vesa, Konrad Dybcio, linux-arm-msm, linux-phy, linux-kernel


On 4/29/2025 3:54 PM, Johan Hovold wrote:
> The PCIe PHYs on x1e80100 do not a have a qref supply so stop requesting
> one. This also avoids the follow warning at boot:
>
> 	qcom-qmp-pcie-phy 1be0000.phy: supply vdda-qref not found, using dummy regulator
>
> Fixes: e961ec81a39b ("phy: qcom: qmp: Add phy register and clk setting for x1e80100 PCIe3")
> Cc: Qiang Yu <quic_qianyu@quicinc.com>
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
> ---
We have QREF for each PCIe port on the X1E80100, all of which consume 
the regulator L3J. Although the PCIe PHY uses QREF indirectly, this 
creates a dependency, right? If PCIe doesn't vote for it, how can the 
PMIC driver decide when to disable L3J during system suspend or runtime 
suspend? Is there a chance that L3J could be disabled while PCIe still 
requires it?
>   drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c
> index c232b8fe9846..e5277ce9c136 100644
> --- a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c
> +++ b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c
> @@ -4233,8 +4233,8 @@ static const struct qmp_phy_cfg x1e80100_qmp_gen4x8_pciephy_cfg = {
>   
>   	.reset_list		= sdm845_pciephy_reset_l,
>   	.num_resets		= ARRAY_SIZE(sdm845_pciephy_reset_l),
> -	.vreg_list		= sm8550_qmp_phy_vreg_l,
> -	.num_vregs		= ARRAY_SIZE(sm8550_qmp_phy_vreg_l),
> +	.vreg_list		= qmp_phy_vreg_l,
> +	.num_vregs		= ARRAY_SIZE(qmp_phy_vreg_l),
>   	.regs			= pciephy_v6_regs_layout,
>   
>   	.pwrdn_ctrl		= SW_PWRDN | REFCLK_DRV_DSBL,

-- 
With best wishes
Qiang Yu


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] phy: qcom: qmp-pcie: drop bogus x1e80100 qref supply
  2025-04-29  8:24 ` Qiang Yu
@ 2025-04-29  8:47   ` Johan Hovold
  0 siblings, 0 replies; 5+ messages in thread
From: Johan Hovold @ 2025-04-29  8:47 UTC (permalink / raw)
  To: Qiang Yu
  Cc: Johan Hovold, Vinod Koul, Kishon Vijay Abraham I,
	Dmitry Baryshkov, Neil Armstrong, Abel Vesa, Konrad Dybcio,
	linux-arm-msm, linux-phy, linux-kernel

On Tue, Apr 29, 2025 at 04:24:19PM +0800, Qiang Yu wrote:
> 
> On 4/29/2025 3:54 PM, Johan Hovold wrote:
> > The PCIe PHYs on x1e80100 do not a have a qref supply so stop requesting
> > one. This also avoids the follow warning at boot:
> >
> > 	qcom-qmp-pcie-phy 1be0000.phy: supply vdda-qref not found, using dummy regulator
> >
> > Fixes: e961ec81a39b ("phy: qcom: qmp: Add phy register and clk setting for x1e80100 PCIe3")
> > Cc: Qiang Yu <quic_qianyu@quicinc.com>
> > Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
> > ---

> We have QREF for each PCIe port on the X1E80100, all of which consume 
> the regulator L3J. Although the PCIe PHY uses QREF indirectly, this 
> creates a dependency, right? 

The PHY binding should describe the direct dependencies for the PHY, so
the addition of qref for sm8550/sm8650 was probably also a mistake.

From what I could tell there is not even a one-to-one mapping of qref
supplies to PCIe ports, but perhaps you can provide more details on how
this fits together here?

> If PCIe doesn't vote for it, how can the 
> PMIC driver decide when to disable L3J during system suspend or runtime 
> suspend? Is there a chance that L3J could be disabled while PCIe still 
> requires it?

If the QREF supplies can be turned off, you may need to mark them as
always-on until things are described properly. But whether that's needed
is not even clear at this point:

	https://lore.kernel.org/lkml/17a1a4d9-fdc5-477a-bf4e-91cae5a62479@oss.qualcomm.com/

Johan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] phy: qcom: qmp-pcie: drop bogus x1e80100 qref supply
  2025-04-29  7:54 [PATCH] phy: qcom: qmp-pcie: drop bogus x1e80100 qref supply Johan Hovold
  2025-04-29  8:01 ` Abel Vesa
  2025-04-29  8:24 ` Qiang Yu
@ 2025-05-14 11:37 ` Vinod Koul
  2 siblings, 0 replies; 5+ messages in thread
From: Vinod Koul @ 2025-05-14 11:37 UTC (permalink / raw)
  To: Johan Hovold
  Cc: Kishon Vijay Abraham I, Dmitry Baryshkov, Neil Armstrong,
	Abel Vesa, Qiang Yu, Konrad Dybcio, linux-arm-msm, linux-phy,
	linux-kernel


On Tue, 29 Apr 2025 09:54:40 +0200, Johan Hovold wrote:
> The PCIe PHYs on x1e80100 do not a have a qref supply so stop requesting
> one. This also avoids the follow warning at boot:
> 
> 	qcom-qmp-pcie-phy 1be0000.phy: supply vdda-qref not found, using dummy regulator
> 
> 

Applied, thanks!

[1/1] phy: qcom: qmp-pcie: drop bogus x1e80100 qref supply
      commit: eb7a22f830f68997d76e660a02143c2bc72e7fb7

Best regards,
-- 
~Vinod



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-05-14 11:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-29  7:54 [PATCH] phy: qcom: qmp-pcie: drop bogus x1e80100 qref supply Johan Hovold
2025-04-29  8:01 ` Abel Vesa
2025-04-29  8:24 ` Qiang Yu
2025-04-29  8:47   ` Johan Hovold
2025-05-14 11:37 ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox