Florian Fainelli cf6696608a net: macb: Probe MDIO bus before registering netdev
The current sequence makes us register for a network device prior to
registering and probing the MDIO bus which could lead to some unwanted
consequences, like a thread of execution calling into ndo_open before
register_netdev() returns, while the MDIO bus is not ready yet.

Rework the sequence to register for the MDIO bus, and therefore attach
to a PHY prior to calling register_netdev(), which implies reworking the
error path a bit.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-05-03 16:06:05 -04:00
..
2016-03-18 23:14:15 -04:00
2016-03-10 10:30:21 +01:00
2016-01-25 10:51:52 -08:00
2015-11-15 17:09:23 -05:00
2016-03-17 21:05:01 -04:00
2016-02-14 14:36:04 -08:00
2016-03-23 14:35:31 -04:00
2016-04-21 15:40:13 +03:00
2016-03-13 22:08:01 -04:00
2016-03-17 21:05:01 -04:00
2016-03-13 22:40:24 -04:00
2016-04-08 15:52:45 -04:00
2016-03-01 15:54:31 -05:00
2016-04-11 15:56:20 -04:00