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-qmp-combo: drop pipe clock lane suffix

The pipe clock is defined in the "lane" node so there's no need to keep
adding a redundant lane-number suffix to the clock name.

Update driver to support the new binding where the pipe clock name has
been deprecated by instead requesting the clock by index.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20220830112923.3725-28-johan+linaro@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Johan Hovold and committed by
Vinod Koul
70e25cac 27759490

+1 -3
+1 -3
drivers/phy/qualcomm/phy-qcom-qmp-combo.c
··· 2723 2723 struct phy *generic_phy; 2724 2724 struct qmp_phy *qphy; 2725 2725 const struct phy_ops *ops; 2726 - char prop_name[MAX_PROP_NAME]; 2727 2726 int ret; 2728 2727 2729 2728 qphy = devm_kzalloc(dev, sizeof(*qphy), GFP_KERNEL); ··· 2788 2789 * Otherwise, we initialize pipe clock to NULL for 2789 2790 * all phys that don't need this. 2790 2791 */ 2791 - snprintf(prop_name, sizeof(prop_name), "pipe%d", id); 2792 - qphy->pipe_clk = devm_get_clk_from_child(dev, np, prop_name); 2792 + qphy->pipe_clk = devm_get_clk_from_child(dev, np, NULL); 2793 2793 if (IS_ERR(qphy->pipe_clk)) { 2794 2794 if (cfg->type == PHY_TYPE_USB3) { 2795 2795 ret = PTR_ERR(qphy->pipe_clk);