aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/sja1105/sja1105_main.c
diff options
context:
space:
mode:
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2022-02-25 11:56:17 +0000
committerDavid S. Miller <davem@davemloft.net>2022-02-25 12:47:19 +0000
commit2d1d548ec14478fc9705d8e1e5a8fe35933e54f0 (patch)
tree25f508a4860da185212d9a6ea76c6d6719b118cc /drivers/net/dsa/sja1105/sja1105_main.c
parentnet: dsa: sja1105: use .mac_select_pcs() interface (diff)
downloadlinux-dev-2d1d548ec14478fc9705d8e1e5a8fe35933e54f0.tar.xz
linux-dev-2d1d548ec14478fc9705d8e1e5a8fe35933e54f0.zip
net: dsa: sja1105: mark as non-legacy
The sja1105 DSA driver does not have a phylink_mac_config() method implementation, it is safe to mark this as a non-legacy driver. Reviewed-by: Vladimir Oltean <olteanv@gmail.com> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/sja1105/sja1105_main.c')
-rw-r--r--drivers/net/dsa/sja1105/sja1105_main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/dsa/sja1105/sja1105_main.c b/drivers/net/dsa/sja1105/sja1105_main.c
index b5c36f808df1..8f061cce77f0 100644
--- a/drivers/net/dsa/sja1105/sja1105_main.c
+++ b/drivers/net/dsa/sja1105/sja1105_main.c
@@ -1396,6 +1396,12 @@ static void sja1105_phylink_get_caps(struct dsa_switch *ds, int port,
{
struct sja1105_private *priv = ds->priv;
+ /* 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;
+
/* The SJA1105 MAC programming model is through the static config
* (the xMII Mode table cannot be dynamically reconfigured), and
* we have to program that early.