|
@@ -81,6 +81,7 @@ static int of_mdiobus_register_phy(struct mii_bus *mdio,
|
|
* can be looked up later */
|
|
* can be looked up later */
|
|
of_node_get(child);
|
|
of_node_get(child);
|
|
phy->mdio.dev.of_node = child;
|
|
phy->mdio.dev.of_node = child;
|
|
|
|
+ phy->mdio.dev.fwnode = of_fwnode_handle(child);
|
|
|
|
|
|
/* All data is now stored in the phy struct;
|
|
/* All data is now stored in the phy struct;
|
|
* register it */
|
|
* register it */
|
|
@@ -111,6 +112,7 @@ static int of_mdiobus_register_device(struct mii_bus *mdio,
|
|
*/
|
|
*/
|
|
of_node_get(child);
|
|
of_node_get(child);
|
|
mdiodev->dev.of_node = child;
|
|
mdiodev->dev.of_node = child;
|
|
|
|
+ mdiodev->dev.fwnode = of_fwnode_handle(child);
|
|
|
|
|
|
/* All data is now stored in the mdiodev struct; register it. */
|
|
/* All data is now stored in the mdiodev struct; register it. */
|
|
rc = mdio_device_register(mdiodev);
|
|
rc = mdio_device_register(mdiodev);
|
|
@@ -206,6 +208,7 @@ int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np)
|
|
mdio->phy_mask = ~0;
|
|
mdio->phy_mask = ~0;
|
|
|
|
|
|
mdio->dev.of_node = np;
|
|
mdio->dev.of_node = np;
|
|
|
|
+ mdio->dev.fwnode = of_fwnode_handle(np);
|
|
|
|
|
|
/* Get bus level PHY reset GPIO details */
|
|
/* Get bus level PHY reset GPIO details */
|
|
mdio->reset_delay_us = DEFAULT_GPIO_RESET_DELAY;
|
|
mdio->reset_delay_us = DEFAULT_GPIO_RESET_DELAY;
|