Commit 77d2fa54a9457 ("scsi: ufs: qcom : Refactor phy_power_on/off
calls") lead to edp reference clock to be turned off, leading to
below phy poweron failure on lemans edp phy.phy phy-aec2a00.phy.10: phy poweron failed --> -110 edp reference clock is required to be enabled before edp PHY initialization. This change adds support for voting the clock from edp phy driver. Signed-off-by: Ritesh Kumar <[email protected]> --- drivers/phy/qualcomm/phy-qcom-edp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/phy/qualcomm/phy-qcom-edp.c b/drivers/phy/qualcomm/phy-qcom-edp.c index f1b51018683d..b544b5988fa6 100644 --- a/drivers/phy/qualcomm/phy-qcom-edp.c +++ b/drivers/phy/qualcomm/phy-qcom-edp.c @@ -103,7 +103,7 @@ struct qcom_edp { struct phy_configure_opts_dp dp_opts; - struct clk_bulk_data clks[2]; + struct clk_bulk_data clks[3]; struct regulator_bulk_data supplies[2]; bool is_edp; @@ -1094,6 +1094,7 @@ static int qcom_edp_phy_probe(struct platform_device *pdev) edp->clks[0].id = "aux"; edp->clks[1].id = "cfg_ahb"; + edp->clks[2].id = "edp_ref"; ret = devm_clk_bulk_get(dev, ARRAY_SIZE(edp->clks), edp->clks); if (ret) return ret; -- 2.17.1
