mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-09 14:30:07 +07:00
net: phylink: set the autoneg state in phylink_phy_change
The phy_state field of phylink should carry only valid information
especially when this can be passed to the .mac_config callback.
Update the an_enabled field with the autoneg state in the
phylink_phy_change function.
Fixes: 9525ae8395
("phylink: add phylink infrastructure")
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
35fc07aee8
commit
ef7bfa8472
@ -635,6 +635,7 @@ 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);
|
||||
|
Loading…
Reference in New Issue
Block a user