[PATCH 6/6] phy: qcom: sgmii-eth: add second regulator support
Konrad Dybcio
konrad.dybcio at oss.qualcomm.com
Mon Nov 24 05:31:30 PST 2025
On 11/24/25 10:25 AM, Mohd Ayaan Anwar wrote:
> The Qualcomm SGMII SerDes PHY requires two regulators to function
> properly. If both of these are not enabled, the following error is
> observed:
> [ 77.105651] qcom-dwmac-sgmii-phy 8909000.phy: QSERDES_COM_C_READY_STATUS timed-out
> [ 77.113447] qcom-ethqos 23040000.ethernet eth0: __stmmac_open: Serdes powerup failed
>
> Therefore, add support for handling the additional regulator in the
> driver.
>
> Fixes: 601d06277007 ("phy: qcom: add the SGMII SerDes PHY driver")
> Signed-off-by: Mohd Ayaan Anwar <mohd.anwar at oss.qualcomm.com>
> ---
[...]
> - return clk_prepare_enable(data->refclk);
> + ret = regulator_enable(data->vdda_0p9);
> + if (ret)
> + goto out_ret;
'goto return' can just become 'return'
[...]
> + data->vdda_0p9 = devm_regulator_get(dev, "vdda-0p9");
> + if (IS_ERR(data->vdda_0p9))
> + return PTR_ERR(data->vdda_0p9);
Do we have any conclusions on the load discussion?
Konrad
More information about the linux-phy
mailing list