Skip to content

Commit

Permalink
drm/msm/dsi: Use msm_clk_get in dsi_get_config
Browse files Browse the repository at this point in the history
We try to get the interface clock in dsi_get_config early during DSI's
component bind. Try getting both the "iface" and "iface_clk" clock name
variants so that we are compatible with both new and legacy DT.

Signed-off-by: Archit Taneja <[email protected]>
Signed-off-by: Rob Clark <[email protected]>
  • Loading branch information
boddob authored and robclark committed Feb 20, 2018
1 parent ff73ff1 commit 29a1157
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/gpu/drm/msm/dsi/dsi_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ static const struct msm_dsi_cfg_handler *dsi_get_config(
goto exit;
}

ahb_clk = clk_get(dev, "iface_clk");
ahb_clk = msm_clk_get(msm_host->pdev, "iface");
if (IS_ERR(ahb_clk)) {
pr_err("%s: cannot get interface clock\n", __func__);
goto put_gdsc;
Expand All @@ -225,7 +225,7 @@ static const struct msm_dsi_cfg_handler *dsi_get_config(
ret = regulator_enable(gdsc_reg);
if (ret) {
pr_err("%s: unable to enable gdsc\n", __func__);
goto put_clk;
goto put_gdsc;
}

ret = clk_prepare_enable(ahb_clk);
Expand All @@ -249,8 +249,6 @@ static const struct msm_dsi_cfg_handler *dsi_get_config(
disable_gdsc:
regulator_disable(gdsc_reg);
pm_runtime_put_sync(dev);
put_clk:
clk_put(ahb_clk);
put_gdsc:
regulator_put(gdsc_reg);
exit:
Expand Down

0 comments on commit 29a1157

Please sign in to comment.