]> 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)
commit2fae76624a4e2dc6f26bd4927aed9f9cf1d0a789
tree739bb5c6ed7f7643873d168b42695b93310a4625
parent652fb6bdfb62e1a7f4e2f2c5903c105c654b35e9
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