1
0
Files
linux/drivers/net/ethernet
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-01 15:19:43 -05:00
2016-05-01 20:59:43 -04:00
2016-02-25 16:51:04 -05:00
2016-03-03 17:17:14 -05:00
2016-02-25 16:51:05 -05:00
2016-02-17 16:15:45 -05:00
2016-04-24 14:45:04 -04:00
2016-04-28 14:21:15 -04:00
2016-04-28 16:37:56 -04:00
2016-03-07 15:39:45 -05:00