]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita1c52550a6a4fea1d00055eb43bdbf8ac2d9bafa
tree75923b5f7517ac6eefc779401ecc920c4695df4d
parent23333328d65db1907fe60948fdb45b10808756de
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