Skip to content

Commit 81c1681

Browse files
Russell King (Oracle)davem330
authored andcommitted
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) <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 25179f8 commit 81c1681

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/net/dsa/b53/b53_common.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1346,6 +1346,12 @@ static void b53_phylink_get_caps(struct dsa_switch *ds, int port,
13461346
/* Get the implementation specific capabilities */
13471347
if (dev->ops->phylink_get_caps)
13481348
dev->ops->phylink_get_caps(dev, port, config);
1349+
1350+
/* This driver does not make use of the speed, duplex, pause or the
1351+
* advertisement in its mac_config, so it is safe to mark this driver
1352+
* as non-legacy.
1353+
*/
1354+
config->legacy_pre_march2020 = false;
13491355
}
13501356

13511357
int b53_phylink_mac_link_state(struct dsa_switch *ds, int port,

0 commit comments

Comments
 (0)