Skip to content

Commit ad69b73

Browse files
lumagrobclark
authored andcommitted
drm/msm/dsi/phy: fix clock names in 28nm_8960 phy
The commit 9f91f22 ("drm/msm/dsi: remove duplicate fields from dsi_pll_Nnm instances") mistakenly changed registered clock names. While the platform is in progress of migration to using clock properties in the dts rather than the global clock names, we should provide backwards compatibility. Thus restore registerd global clock names. Fixes: 9f91f22 ("drm/msm/dsi: remove duplicate fields from dsi_pll_Nnm instances") Signed-off-by: Dmitry Baryshkov <[email protected]> Reviewed-by: Abhinav Kumar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Rob Clark <[email protected]>
1 parent 3431c17 commit ad69b73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm_8960.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ static int pll_28nm_register(struct dsi_pll_28nm *pll_28nm, struct clk_hw **prov
428428
bytediv->reg = pll_28nm->phy->pll_base + REG_DSI_28nm_8960_PHY_PLL_CTRL_9;
429429

430430
snprintf(parent_name, 32, "dsi%dvco_clk", pll_28nm->phy->id);
431-
snprintf(clk_name, 32, "dsi%dpllbyte", pll_28nm->phy->id);
431+
snprintf(clk_name, 32, "dsi%dpllbyte", pll_28nm->phy->id + 1);
432432

433433
bytediv_init.name = clk_name;
434434
bytediv_init.ops = &clk_bytediv_ops;
@@ -442,7 +442,7 @@ static int pll_28nm_register(struct dsi_pll_28nm *pll_28nm, struct clk_hw **prov
442442
return ret;
443443
provided_clocks[DSI_BYTE_PLL_CLK] = &bytediv->hw;
444444

445-
snprintf(clk_name, 32, "dsi%dpll", pll_28nm->phy->id);
445+
snprintf(clk_name, 32, "dsi%dpll", pll_28nm->phy->id + 1);
446446
/* DIV3 */
447447
hw = devm_clk_hw_register_divider(dev, clk_name,
448448
parent_name, 0, pll_28nm->phy->pll_base +

0 commit comments

Comments
 (0)