Skip to content

Commit

Permalink
phy: qcom-edp: add regulator_set_load to edp phy
Browse files Browse the repository at this point in the history
This patch add regulator_set_load() before enable regulator at
eDP phy driver.

Signed-off-by: Kuogee Hsieh <quic_khsieh@quicinc.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/1657038556-2231-2-git-send-email-quic_khsieh@quicinc.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
  • Loading branch information
Kuogee Hsieh authored and Vinod Koul committed Jul 6, 2022
1 parent 2a56dc6 commit a4888b2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions drivers/phy/qualcomm/phy-qcom-edp.c
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,18 @@ static int qcom_edp_phy_probe(struct platform_device *pdev)
if (ret)
return ret;

ret = regulator_set_load(edp->supplies[0].consumer, 21800); /* 1.2 V vdda-phy */
if (ret) {
dev_err(dev, "failed to set load at %s\n", edp->supplies[0].supply);
return ret;
}

ret = regulator_set_load(edp->supplies[1].consumer, 36000); /* 0.9 V vdda-pll */
if (ret) {
dev_err(dev, "failed to set load at %s\n", edp->supplies[1].supply);
return ret;
}

ret = qcom_edp_clks_register(edp, pdev->dev.of_node);
if (ret)
return ret;
Expand Down

0 comments on commit a4888b2

Please sign in to comment.