Commit 70ef608c authored by Ioana Ciornei's avatar Ioana Ciornei Committed by David S. Miller

net: mdio: setup of_node for the MDIO device

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: bc1bee3b ("net: mdiobus: Introduce fwnode_mdiobus_register_phy()")
Signed-off-by: default avatarIoana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b67fda9a
...@@ -65,6 +65,7 @@ int fwnode_mdiobus_phy_device_register(struct mii_bus *mdio, ...@@ -65,6 +65,7 @@ int fwnode_mdiobus_phy_device_register(struct mii_bus *mdio,
* can be looked up later * can be looked up later
*/ */
fwnode_handle_get(child); fwnode_handle_get(child);
phy->mdio.dev.of_node = to_of_node(child);
phy->mdio.dev.fwnode = child; phy->mdio.dev.fwnode = child;
/* All data is now stored in the phy struct; /* All data is now stored in the phy struct;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment