net: dsa: remove legacy_pre_march2020 detection
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Fri, 14 Jul 2023 09:12:07 +0000 (10:12 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 18 Jul 2023 07:47:08 +0000 (09:47 +0200)
commita88dd7538461b2daf6883e5392957b21270638ed
treeda1127790ae95185180e37e20ebda0bc5e126b07
parent2cee73cef253a333c7d48a0f8edda53e3cca990c
net: dsa: remove legacy_pre_march2020 detection

All drivers are now updated for the March 2020 changes, and no longer
make use of the mac_pcs_get_state() or mac_an_restart() operations,
which are now NULL across all DSA drivers. All DSA drivers don't look
at speed, duplex, pause or advertisement in their phylink_mac_config()
method either.

Remove support for these operations from DSA, and stop marking DSA as
a legacy driver by default.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/net/dsa.h
net/dsa/port.c