[PATCH v3 07/10] phy: phy-snps-eusb2: make reset control optional
Ivaylo Ivanov
ivo.ivanov.ivanov1 at gmail.com
Fri Mar 21 06:58:51 PDT 2025
Not all SoCs expose the reset line controls to the kernel, so make them
optional.
Signed-off-by: Ivaylo Ivanov <ivo.ivanov.ivanov1 at gmail.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov at linaro.org>
---
drivers/phy/phy-snps-eusb2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/phy/phy-snps-eusb2.c b/drivers/phy/phy-snps-eusb2.c
index 8ccd432a0..1e7e75bbc 100644
--- a/drivers/phy/phy-snps-eusb2.c
+++ b/drivers/phy/phy-snps-eusb2.c
@@ -410,7 +410,7 @@ static int snps_eusb2_hsphy_probe(struct platform_device *pdev)
if (IS_ERR(phy->base))
return PTR_ERR(phy->base);
- phy->phy_reset = devm_reset_control_get_exclusive(dev, NULL);
+ phy->phy_reset = devm_reset_control_get_optional_exclusive(dev, NULL);
if (IS_ERR(phy->phy_reset))
return PTR_ERR(phy->phy_reset);
--
2.43.0
More information about the linux-arm-kernel
mailing list