]> git.baikalelectronics.ru Git - kernel.git/commit
net: phylink: use legacy_pre_march2020
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 9 Dec 2021 13:11:48 +0000 (13:11 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 9 Dec 2021 19:21:03 +0000 (11:21 -0800)
commit0210111a30c7d61dd037f767c1b35079a867ab66
tree739bb5c6ed7f7643873d168b42695b93310a4625
parent27bbddd601e549b978bc4560bc4bf66c0e516b4c
net: phylink: use legacy_pre_march2020

Use the legacy flag to indicate whether we should operate in legacy
mode. This allows us to stop using the presence of a PCS as an
indicator to the age of the phylink user, and make PCS presence
optional.

Legacy mode involves:
1) calling mac_config() whenever the link comes up
2) calling mac_config() whenever the inband advertisement changes,
   possibly followed by a call to mac_an_restart()
3) making use of mac_an_restart()
4) making use of mac_pcs_get_state()

All the above functionality was moved to a seperate "PCS" block of
operations in March 2020.

Update the documents to indicate that the differences that this flag
makes.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phylink.c
include/linux/phylink.h