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-08 12:34:12 -05:00
2016-02-16 16:06:13 -05:00
2016-01-11 00:00:34 -05:00
2016-01-07 14:31:26 -05:00
2016-02-17 23:32:05 -05:00
2016-03-06 22:59:18 -05:00
2016-03-03 16:25:15 -05:00
2016-02-17 22:08:34 -05:00
2016-03-16 19:28:01 -04:00
2016-04-21 15:12:23 -04:00
2016-02-24 11:32:11 -05:00
2016-04-27 16:18:45 -04:00
2016-03-01 15:19:43 -05:00
2016-05-03 16:06:05 -04:00
2016-04-13 23:06:31 -04:00
2016-05-01 20:59:43 -04:00
2016-03-11 15:07:48 -05:00
2016-02-21 22:40:49 -05:00
2016-02-25 16:51:04 -05:00
2015-11-20 14:48:27 -05:00
2016-03-08 12:34:12 -05:00
2016-03-03 17:20:08 -05:00
2016-01-10 22:05:30 -05:00
2016-03-31 16:04:05 -04:00
2016-02-21 22:08:43 -05:00
2016-04-01 20:03:33 -05:00
2016-01-29 20:33:38 -08:00
2016-03-07 14:38:52 -05:00
2016-04-13 20:06:55 -07:00
2016-05-03 15:27:18 -04:00
2016-03-23 13:49:13 -04:00
2016-05-03 13:37:26 -04:00
2016-03-18 19:39:54 -04:00
2016-03-03 17:17:14 -05:00
2016-04-28 14:21:14 -04:00
2015-12-19 12:58:46 -05:00
2016-01-29 20:33:39 -08:00
2016-03-01 22:25:17 +01:00
2016-02-15 11:18:22 +01:00
2016-02-25 16:51:05 -05:00
2016-01-10 22:50:14 -05:00
2015-12-15 16:50:08 -05:00
2016-02-17 16:15:45 -05:00
2016-04-24 14:45:04 -04:00
2016-02-25 16:12:15 -05:00
2016-01-07 14:31:26 -05:00
2016-03-13 22:32:44 -04:00
2016-04-13 22:36:28 -04:00
2016-03-12 20:11:13 -05:00
2016-03-27 22:39:22 -04:00
2016-04-28 14:21:15 -04:00
2016-03-21 11:26:12 -04:00
2016-04-24 14:40:24 -04:00
2016-03-19 10:05:34 -07:00
2016-03-02 14:57:15 -05:00
2016-04-28 17:27:30 -04:00
2016-01-04 16:07:16 -05:00
2016-04-28 16:37:56 -04:00
2016-01-07 14:31:26 -05:00
2016-01-07 14:31:26 -05:00
2016-03-06 22:58:51 -05:00
2016-03-07 15:39:45 -05:00
2016-03-18 18:25:30 -04:00
2016-01-10 18:03:47 -05:00
2016-03-18 18:25:30 -04:00