Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

phy: qcom: edp: Generate unique clock names

With multiple Displayport PHYs the hard coded clock names collides,
generate unique clock names based on the device name instead.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220810040745.3582985-3-bjorn.andersson@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Bjorn Andersson and committed by
Vinod Koul
317e00bb 6993c079

+5 -2
+5 -2
drivers/phy/qualcomm/phy-qcom-edp.c
··· 571 571 { 572 572 struct clk_hw_onecell_data *data; 573 573 struct clk_init_data init = { }; 574 + char name[64]; 574 575 int ret; 575 576 576 577 data = devm_kzalloc(edp->dev, struct_size(data, hws, 2), GFP_KERNEL); 577 578 if (!data) 578 579 return -ENOMEM; 579 580 581 + snprintf(name, sizeof(name), "%s::link_clk", dev_name(edp->dev)); 580 582 init.ops = &qcom_edp_dp_link_clk_ops; 581 - init.name = "edp_phy_pll_link_clk"; 583 + init.name = name; 582 584 edp->dp_link_hw.init = &init; 583 585 ret = devm_clk_hw_register(edp->dev, &edp->dp_link_hw); 584 586 if (ret) 585 587 return ret; 586 588 589 + snprintf(name, sizeof(name), "%s::vco_div_clk", dev_name(edp->dev)); 587 590 init.ops = &qcom_edp_dp_pixel_clk_ops; 588 - init.name = "edp_phy_pll_vco_div_clk"; 591 + init.name = name; 589 592 edp->dp_pixel_hw.init = &init; 590 593 ret = devm_clk_hw_register(edp->dev, &edp->dp_pixel_hw); 591 594 if (ret)