mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v1 1/3] net: ag71xx: define parent devices
@ 2017-09-20 18:05 Oleksij Rempel
  2017-09-20 18:05 ` [PATCH v1 2/3] MIPS: dts: tl_wdr4300: add Atheros ART partition Oleksij Rempel
  2017-09-20 18:05 ` [PATCH v1 3/3] MIPS: ath79: provide driver for " Oleksij Rempel
  0 siblings, 2 replies; 5+ messages in thread
From: Oleksij Rempel @ 2017-09-20 18:05 UTC (permalink / raw)
  To: barebox; +Cc: Oleksij Rempel

without it we are not able to set mac address from other driver.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
---
 drivers/net/ag71xx.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ag71xx.c b/drivers/net/ag71xx.c
index 1cec26360..a422aacdd 100644
--- a/drivers/net/ag71xx.c
+++ b/drivers/net/ag71xx.c
@@ -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);
-- 
2.11.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-09-29 22:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-20 18:05 [PATCH v1 1/3] net: ag71xx: define parent devices Oleksij Rempel
2017-09-20 18:05 ` [PATCH v1 2/3] MIPS: dts: tl_wdr4300: add Atheros ART partition Oleksij Rempel
2017-09-26  7:09   ` Sascha Hauer
2017-09-29 22:03     ` Oleksij Rempel
2017-09-20 18:05 ` [PATCH v1 3/3] MIPS: ath79: provide driver for " Oleksij Rempel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox