[PATCH 3/4] phy: qcom-qmp-pcie-msm8996: Do not request reset by index

Philipp Zabel p.zabel at pengutronix.de
Fri Nov 6 07:01:11 PST 2026


There is no need to request a single reset by index.
Use of_reset_control_get_exclusive() to request the first and only
reset.

Signed-off-by: Philipp Zabel <p.zabel at pengutronix.de>
---
 drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c b/drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c
index ed22b7a256ef..7c8ec7e2e5fd 100644
--- a/drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c
+++ b/drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c
@@ -662,7 +662,7 @@ static int qmp_pcie_msm8996_create(struct device *dev, struct device_node *np, i
 				     "failed to get lane%d pipe clock\n", id);
 	}
 
-	qphy->lane_rst = of_reset_control_get_exclusive_by_index(np, 0);
+	qphy->lane_rst = of_reset_control_get_exclusive(np, NULL);
 	if (IS_ERR(qphy->lane_rst)) {
 		dev_err(dev, "failed to get lane%d reset\n", id);
 		return PTR_ERR(qphy->lane_rst);

-- 
2.47.3




More information about the linux-phy mailing list