net: ag71xx: define parent devices
PATCH 1/1 net: ag71xx: define parent devices
without it we are not able to set mac address from other driver.
Signed-off-by Oleksij Rempel <[email protected]>
--- drivers/net/ag71xx.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/ag71xx.c +2 -0
@@ -580,6 +580,7 @@ static int ag71xx_probe(struct device_d *dev) miibus = &priv->miibus; dev->priv = edev; edev->priv = priv; + edev->parent = dev; edev->init = ag71xx_ether_init; edev->open = ag71xx_ether_open;
@@ -597,6 +598,7 @@ static int ag71xx_probe(struct device_d *dev) miibus->read = ag71xx_ether_mii_read; miibus->write = ag71xx_ether_mii_write; miibus->priv = priv; + miibus->parent = dev;/* enable switch core */ rd =ar7240_reg_rd (AR71XX_PLL_BASE +AR933X_ETHSW_CLOCK_CONTROL_REG );
Signature · 7 lines
2.11.0 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 7 lines · Oleksij Rempel
without it we are not able to set mac address from other driver.
Signed-off-by Oleksij Rempel <[email protected]>--- drivers/net/ag71xx.c | 2 ++ 1 file changed, 2 insertions(+)
Applied, thanks
Sascha
Quoted 29 lines
drivers/net/ag71xx.c +2
-0@@ -580,6 +580,7 @@ static int ag71xx_probe(struct device_d *dev) miibus = &priv->miibus; dev->priv = edev; edev->priv = priv; + edev->parent = dev; edev->init = ag71xx_ether_init; edev->open = ag71xx_ether_open;@@ -597,6 +598,7 @@ static int ag71xx_probe(struct device_d *dev) miibus->read = ag71xx_ether_mii_read; miibus->write = ag71xx_ether_mii_write; miibus->priv = priv; + miibus->parent = dev;/* enable switch core */ rd =ar7240_reg_rd (AR71XX_PLL_BASE +AR933X_ETHSW_CLOCK_CONTROL_REG );Signature · 7 lines
2.11.0 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox