summaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2016-05-02 18:38:45 -0700
committerDavid S. Miller <davem@davemloft.net>2016-05-03 16:06:05 -0400
commitcf6696608a069aaac10a253207deeb63dcd6a653 (patch)
tree43a7a6710ae8f81ef525389a659d9bfeecf571ad /net/ipv6
parentb365d955f3f8dad71845fee8092330039f67c428 (diff)
downloadlinux-cf6696608a069aaac10a253207deeb63dcd6a653.tar.gz
linux-cf6696608a069aaac10a253207deeb63dcd6a653.tar.bz2
linux-cf6696608a069aaac10a253207deeb63dcd6a653.zip
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>
Diffstat (limited to 'net/ipv6')
0 files changed, 0 insertions, 0 deletions