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)
commite46e08b843d8ff8c46ad8d7b0b95acaacc4e6195
tree7c701f63cca0b50f09b655e06543f9de79264e29
parent22041fb05b66387b2854f789d1e1f55c7d07b4f4
net phy: Check for aneg completion before setting state to PHY_RUNNING

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>
drivers/net/phy/phy.c