diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2020-06-24 12:30:04 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-25 16:02:24 -0700 |
commit | 575691b309291c5163cca5877ec159120a68774d (patch) | |
tree | c4be942bdbe91504ad387ac5d3d899f9f1c2acc0 /drivers/net/phy | |
parent | a5440cbecd99e2564504572b39bc70ea7addfc25 (diff) | |
download | linux-575691b309291c5163cca5877ec159120a68774d.tar.bz2 |
net: phylink: only restart AN if the link mode is using in-band AN
If we are not using in-band autonegotiation, there is no point passing
the request to restart autonegotiation on to the driver.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r-- | drivers/net/phy/phylink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c index 7cda1646bbf7..494af91535ba 100644 --- a/drivers/net/phy/phylink.c +++ b/drivers/net/phy/phylink.c @@ -429,7 +429,8 @@ static void phylink_mac_config_up(struct phylink *pl, static void phylink_mac_pcs_an_restart(struct phylink *pl) { if (pl->link_config.an_enabled && - phy_interface_mode_is_8023z(pl->link_config.interface)) { + phy_interface_mode_is_8023z(pl->link_config.interface) && + phylink_autoneg_inband(pl->cur_link_an_mode)) { if (pl->pcs_ops) pl->pcs_ops->pcs_an_restart(pl->config); else |