[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210617122905.1735330-2-ciorneiioana@gmail.com>
Date: Thu, 17 Jun 2021 15:29:03 +0300
From: Ioana Ciornei <ciorneiioana@...il.com>
To: davem@...emloft.net, kuba@...nel.org, netdev@...r.kernel.org
Cc: andrew@...n.ch, hkallweit1@...il.com, linux@...linux.org.uk,
gregkh@...uxfoundation.org, rafael@...nel.org,
grant.likely@....com, calvin.johnson@....nxp.com,
Ioana Ciornei <ioana.ciornei@....com>
Subject: [PATCH net-next v2 1/3] net: mdio: setup of_node for the MDIO device
From: Ioana Ciornei <ioana.ciornei@....com>
By mistake, the of_node of the MDIO device was not setup in the patch
linked below. As a consequence, any PHY driver that depends on the
of_node in its probe callback was not be able to successfully finish its
probe on a PHY, thus the Generic PHY driver was used instead.
Fix this by actually setting up the of_node.
Fixes: bc1bee3b87ee ("net: mdiobus: Introduce fwnode_mdiobus_register_phy()")
Signed-off-by: Ioana Ciornei <ioana.ciornei@....com>
---
Changes in v2:
- none
drivers/net/mdio/fwnode_mdio.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/mdio/fwnode_mdio.c b/drivers/net/mdio/fwnode_mdio.c
index e96766da8de4..283ddb1185bd 100644
--- a/drivers/net/mdio/fwnode_mdio.c
+++ b/drivers/net/mdio/fwnode_mdio.c
@@ -65,6 +65,7 @@ int fwnode_mdiobus_phy_device_register(struct mii_bus *mdio,
* can be looked up later
*/
fwnode_handle_get(child);
+ phy->mdio.dev.of_node = to_of_node(child);
phy->mdio.dev.fwnode = child;
/* All data is now stored in the phy struct;
--
2.31.1
Powered by blists - more mailing lists