summaryrefslogtreecommitdiff
path: root/drivers/phy
diff options
context:
space:
mode:
authorOleksij Rempel <o.rempel@pengutronix.de>2022-05-10 14:12:42 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-05-11 08:30:16 +0200
commit8d2eb01dd2497f56b5d642f2cab9cc1d95892487 (patch)
treeceea04558e6260fc056cf9fbefc68c617573d4d2 /drivers/phy
parent58aef6839c436ec7ccf2b261dbedc165f9de0aa8 (diff)
downloadbarebox-8d2eb01dd2497f56b5d642f2cab9cc1d95892487.tar.gz
phy: stm32-usphyc: Add dummy driver for child node
To satisfy deep probe mechanism Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Link: https://lore.barebox.org/20220510121242.216065-2-o.rempel@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/phy')
-rw-r--r--drivers/phy/phy-stm32-usbphyc.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/phy/phy-stm32-usbphyc.c b/drivers/phy/phy-stm32-usbphyc.c
index 4c1d7bfa48..2fa1f0fd01 100644
--- a/drivers/phy/phy-stm32-usbphyc.c
+++ b/drivers/phy/phy-stm32-usbphyc.c
@@ -423,10 +423,17 @@ static int stm32_usbphyc_probe(struct device_d *dev)
for_each_child_of_node(np, child) {
struct stm32_usbphyc_phy *usbphyc_phy;
+ struct device_d *phydev;
struct phy *phy;
u32 index;
- phy = phy_create(dev, child, &stm32_usbphyc_phy_ops);
+ phydev = of_platform_device_create(child, dev);
+ if (!phydev)
+ continue;
+
+ of_platform_device_dummy_drv(phydev);
+
+ phy = phy_create(phydev, child, &stm32_usbphyc_phy_ops);
if (IS_ERR(phy)) {
ret = PTR_ERR(phy);
if (ret != -EPROBE_DEFER)