From: Florian Fainelli <f.faine...@gmail.com> Date: Mon, 2 May 2016 18:38:45 -0700
> 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.faine...@gmail.com> Applied, thanks Florian.