[PATCH 1/4] phy: qcom-qusb2: Do not request reset by index
From: Philipp Zabel
Date: Fri Nov 06 2026 - 10:05:01 EST
There is no need to request a single reset by index.
Use devm_reset_control_get_exclusive() to request the first and only
reset.
Signed-off-by: Philipp Zabel <p.zabel@xxxxxxxxxxxxxx>
---
drivers/phy/qualcomm/phy-qcom-qusb2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/phy/qualcomm/phy-qcom-qusb2.c b/drivers/phy/qualcomm/phy-qcom-qusb2.c
index 2e5fdb620cb2..6476ed0cb815 100644
--- a/drivers/phy/qualcomm/phy-qcom-qusb2.c
+++ b/drivers/phy/qualcomm/phy-qcom-qusb2.c
@@ -1032,7 +1032,7 @@ static int qusb2_phy_probe(struct platform_device *pdev)
if (IS_ERR(qphy->iface_clk))
return PTR_ERR(qphy->iface_clk);
- qphy->phy_reset = devm_reset_control_get_by_index(&pdev->dev, 0);
+ qphy->phy_reset = devm_reset_control_get_exclusive(&pdev->dev, NULL);
if (IS_ERR(qphy->phy_reset)) {
dev_err(dev, "failed to get phy core reset\n");
return PTR_ERR(qphy->phy_reset);
--
2.47.3