summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2021-12-10 15:27:13 +0000
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2022-04-14 10:12:16 +0100
commit8f8336c0acba33fc224e28715a9eefad05fcad04 (patch)
tree1ff7081dc03a5ea7869a3fb24a04f5a3c9a84d9b /drivers/net
parent34b6756a2bb850273877be176902ba1463ea2853 (diff)
net: dsa: b53: mark as non-legacy
The B53 driver does not make use of the speed, duplex, pause or advertisement in its phylink_mac_config() implementation, so it can be marked as a non-legacy driver. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/dsa/b53/b53_common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/dsa/b53/b53_common.c b/drivers/net/dsa/b53/b53_common.c
index b3e5ba5b8abb..3ec8a28c4669 100644
--- a/drivers/net/dsa/b53/b53_common.c
+++ b/drivers/net/dsa/b53/b53_common.c
@@ -1346,6 +1346,12 @@ static void b53_phylink_get_caps(struct dsa_switch *ds, int port,
/* Get the implementation specific capabilities */
if (dev->ops->phylink_get_caps)
dev->ops->phylink_get_caps(dev, port, config);
+
+ /* This driver does not make use of the speed, duplex, pause or the
+ * advertisement in its mac_config, so it is safe to mark this driver
+ * as non-legacy.
+ */
+ config->legacy_pre_march2020 = false;
}
int b53_phylink_mac_link_state(struct dsa_switch *ds, int port,