]> git.baikalelectronics.ru Git - kernel.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)
commit9259bf2baecad58b1c8779de196ca4a71a4d8232
tree22137c5cb7422c35ee37ace2d26823a1912ed6bf
parente92f26d1a29286bd86784cbb16e4d9b20223be99
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: d3eead77c792 ("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