net: phylink: ensure inband AN works correctly
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 20 May 2019 15:07:20 +0000 (16:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 May 2019 20:11:54 +0000 (13:11 -0700)
commit406cb0c4d16ac5b80c2c802b09fe71f1b1ff8eec
tree75923b5f7517ac6eefc779401ecc920c4695df4d
parent94d250fae48e6f873d8362308f5c4d02cd1b1fd2
net: phylink: ensure inband AN works correctly

Do not update the link interface mode while the link is down to avoid
spurious link interface changes.

Always call mac_config if we have a PHY to propagate the pause mode
settings to the MAC.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c