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

phy: qcom-qmp-pcie-msm8996: 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-29-johan+linaro@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Johan Hovold and committed by
Vinod Koul
302db460 70e25cac

+1 -2
+1 -2
drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c
··· 892 892 if (!qphy->pcs_misc) 893 893 dev_vdbg(dev, "PHY pcs_misc-reg not used\n"); 894 894 895 - snprintf(prop_name, sizeof(prop_name), "pipe%d", id); 896 - qphy->pipe_clk = devm_get_clk_from_child(dev, np, prop_name); 895 + qphy->pipe_clk = devm_get_clk_from_child(dev, np, NULL); 897 896 if (IS_ERR(qphy->pipe_clk)) { 898 897 return dev_err_probe(dev, PTR_ERR(qphy->pipe_clk), 899 898 "failed to get lane%d pipe clock\n", id);