summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2019-06-15 18:10:30 -0700
committerDavid S. Miller <davem@davemloft.net>2019-06-15 18:10:30 -0700
commit5db2e7c7917f40236a021959893121c4e496f609 (patch)
tree47732134100455b5337c4ec68b7c3633cdce6e9f
parent42f5cda5eaf4396a939ae9bb43bb8d1d09c1b15c (diff)
Revert "net: phylink: set the autoneg state in phylink_phy_change"
This reverts commit ef7bfa84725d891bbdb88707ed55b2cbf94942bb. Russell King espressed some strong opposition to this change, explaining that this is trying to make phylink behave outside of how it has been designed. Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/phy/phylink.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c
index c638e13fbf81..4c0616ba314d 100644
--- a/drivers/net/phy/phylink.c
+++ b/drivers/net/phy/phylink.c
@@ -635,7 +635,6 @@ static void phylink_phy_change(struct phy_device *phydev, bool up,
pl->phy_state.pause |= MLO_PAUSE_ASYM;
pl->phy_state.interface = phydev->interface;
pl->phy_state.link = up;
- pl->phy_state.an_enabled = phydev->autoneg;
mutex_unlock(&pl->state_mutex);
phylink_run_resolve(pl);