[PATCH 13/19] phy: Add deep probe support
Sascha Hauer
s.hauer at pengutronix.de
Fri Jun 25 00:25:34 PDT 2021
Add deep probe support to the phy core.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
drivers/phy/phy-core.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c
index ff6e35d160..493876b17f 100644
--- a/drivers/phy/phy-core.c
+++ b/drivers/phy/phy-core.c
@@ -259,6 +259,10 @@ static struct phy *_of_phy_get(struct device_node *np, int index)
if (ret)
return ERR_PTR(-ENODEV);
+ ret = of_device_ensure_probed(args.np);
+ if (ret)
+ return ERR_PTR(ret);
+
phy_provider = of_phy_provider_lookup(args.np);
if (IS_ERR(phy_provider)) {
return ERR_CAST(phy_provider);
--
2.29.2
More information about the barebox
mailing list