net: phy: restart phy autonegotiation after EEE advertisment change
authorRussell King <rmk+kernel@armlinux.org.uk>
Fri, 31 Mar 2017 09:37:12 +0000 (10:37 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 2 Apr 2017 03:04:03 +0000 (20:04 -0700)
commitf75abeb8338e2d5bcdfc393dff3950a7039eab5a
tree3fb1f0ccf768c0f93a14e853cd4a06bde154db37
parent83ea067fe2eae9a67c172aede6e11b9f194b1d52
net: phy: restart phy autonegotiation after EEE advertisment change

When the EEE advertisment is changed, we should restart autonegotiation
to update the link partner with the new EEE settings.  Add this trigger
but only if the advertisment has changed.

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c