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-pcie: 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-26-johan+linaro@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Johan Hovold and committed by
Vinod Koul
f8432544 735441e1

+1 -3
+1 -3
drivers/phy/qualcomm/phy-qcom-qmp-pcie.c
··· 2314 2314 struct qcom_qmp *qmp = dev_get_drvdata(dev); 2315 2315 struct phy *generic_phy; 2316 2316 struct qmp_phy *qphy; 2317 - char prop_name[MAX_PROP_NAME]; 2318 2317 int ret; 2319 2318 2320 2319 qphy = devm_kzalloc(dev, sizeof(*qphy), GFP_KERNEL); ··· 2373 2374 if (!qphy->pcs_misc) 2374 2375 dev_vdbg(dev, "PHY pcs_misc-reg not used\n"); 2375 2376 2376 - snprintf(prop_name, sizeof(prop_name), "pipe%d", id); 2377 - qphy->pipe_clk = devm_get_clk_from_child(dev, np, prop_name); 2377 + qphy->pipe_clk = devm_get_clk_from_child(dev, np, NULL); 2378 2378 if (IS_ERR(qphy->pipe_clk)) { 2379 2379 return dev_err_probe(dev, PTR_ERR(qphy->pipe_clk), 2380 2380 "failed to get lane%d pipe clock\n", id);