Skip to content

Commit f6f04c0

Browse files
Russell King (Oracle)davem330
authored andcommitted
net: dsa: ocelot: mark as non-legacy
The ocelot DSA 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. Reviewed-by: Vladimir Oltean <[email protected]> Tested-by: Vladimir Oltean <[email protected]> Signed-off-by: Russell King (Oracle) <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 864ba48 commit f6f04c0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/net/dsa/ocelot/felix.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,12 @@ static void felix_phylink_get_caps(struct dsa_switch *ds, int port,
783783
{
784784
struct ocelot *ocelot = ds->priv;
785785

786+
/* This driver does not make use of the speed, duplex, pause or the
787+
* advertisement in its mac_config, so it is safe to mark this driver
788+
* as non-legacy.
789+
*/
790+
config->legacy_pre_march2020 = false;
791+
786792
__set_bit(ocelot->ports[port]->phy_mode,
787793
config->supported_interfaces);
788794
}

0 commit comments

Comments
 (0)