phy: qmp: Provide unique clock names for DP clocks
authorBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 22 Jul 2021 03:07:38 +0000 (20:07 -0700)
committerVinod Koul <vkoul@kernel.org>
Fri, 20 Aug 2021 03:52:30 +0000 (09:22 +0530)
commit34633219b8947314d369ddf7bc2e45ac5aec7765
tree7ce4a11b6c1cb849b5c033348c9f6ed523f8d6aa
parent89161cd00838ac25f401e3d149171908148af7be
phy: qmp: Provide unique clock names for DP clocks

The USB/DP combo PHY exposes the "qmp_dp_phy_pll_link_clk" and
"qmp_dp_phy_pll_vco_div_clk" clocks, that are consumed by the display
clock controller. But for boards with multiple enabled QMP USB/DP combo
instances the hard coded names collides - and hence only the first
probed device is allowed to register.

Given that clocks are no longer reference globally by name and it's
possible to replace the hard coded names by something unique, but still
user friendly.

The two new clock names are based on dev_name() and results in names
such as "88ee000.phy::link_clk" and "88ee000.phy::vco_div_clk".

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20210722030738.3385821-1-bjorn.andersson@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp.c