OSDN Git Service

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)
commit001f4261fe4d5ae710cf1f445b6cae6d9d3ae26e
tree739bb5c6ed7f7643873d168b42695b93310a4625
parentb06515367facfadcf5e70cf6f39db749cf4eb5e3
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