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 reset lane suffix

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

Update driver to support the new binding where the "lane" reset name has
been deprecated by instead requesting the reset 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-30-johan+linaro@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Johan Hovold and committed by
Vinod Koul
5337b248 302db460

+1 -4
+1 -4
drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c
··· 860 860 struct qcom_qmp *qmp = dev_get_drvdata(dev); 861 861 struct phy *generic_phy; 862 862 struct qmp_phy *qphy; 863 - char prop_name[MAX_PROP_NAME]; 864 863 int ret; 865 864 866 865 qphy = devm_kzalloc(dev, sizeof(*qphy), GFP_KERNEL); ··· 897 898 "failed to get lane%d pipe clock\n", id); 898 899 } 899 900 900 - /* Get lane reset, if any */ 901 - snprintf(prop_name, sizeof(prop_name), "lane%d", id); 902 - qphy->lane_rst = of_reset_control_get_exclusive(np, prop_name); 901 + qphy->lane_rst = of_reset_control_get_exclusive_by_index(np, 0); 903 902 if (IS_ERR(qphy->lane_rst)) { 904 903 dev_err(dev, "failed to get lane%d reset\n", id); 905 904 return PTR_ERR(qphy->lane_rst);