]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: Invalidate LP advertising flags when restarting or disabling AN
authorBen Hutchings <ben.hutchings@codethink.co.uk>
Tue, 27 Jan 2015 00:58:15 +0000 (00:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Jan 2015 08:27:08 +0000 (00:27 -0800)
commit5bce69c767e80bd485b763aadaaab6784ea54898
treebd2b07eabd86f7d35d8aa6dff82f09b5b03d232c
parentbcfe0f0103420a31e75d12688cc13a1c80da53d8
net: phy: Invalidate LP advertising flags when restarting or disabling AN

It is possible to see the old value of the LP advertising flags
through ethtool after reconfiguring the PHY and before autonegotiation
completes.  If autonegotiation is turned off then the last value seen
will persist indefinitely.

Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c