]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: phylink: set the autoneg state in phylink_phy_change
authorIoana Ciornei <ioana.ciornei@nxp.com>
Thu, 13 Jun 2019 06:37:51 +0000 (09:37 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jun 2019 20:29:32 +0000 (13:29 -0700)
commitef7bfa84725d891bbdb88707ed55b2cbf94942bb
tree22137c5cb7422c35ee37ace2d26823a1912ed6bf
parent35fc07aee8f6d55aeacdbfdccc425e684737f741
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: 9525ae83959b ("phylink: add phylink infrastructure")
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c