net phy: Check for aneg completion before setting state to PHY_RUNNING
authorBalakumaran Kannan <kumaran.4353@gmail.com>
Thu, 24 Apr 2014 02:52:47 +0000 (08:22 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 May 2014 19:50:57 +0000 (15:50 -0400)
phy_state_machine should check whether auto-negotiatin is completed
before changing phydev->state from PHY_NOLINK to PHY_RUNNING. If
auto-negotiation is not completed phydev->state should be set to
PHY_AN.

Signed-off-by: Balakumaran Kannan <kumaran.4353@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found