[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220225104038.buvxphxm4o5cc4jt@skbuf>
Date: Fri, 25 Feb 2022 12:40:38 +0200
From: Vladimir Oltean <olteanv@...il.com>
To: "Russell King (Oracle)" <rmk+kernel@...linux.org.uk>
Cc: Marek Beh__n <kabel@...nel.org>, Andrew Lunn <andrew@...n.ch>,
Vivien Didelot <vivien.didelot@...il.com>,
Florian Fainelli <f.fainelli@...il.com>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>, netdev@...r.kernel.org
Subject: Re: [PATCH RFC net-next 4/6] net: dsa: sja1105: mark as non-legacy
On Thu, Feb 24, 2022 at 04:15:31PM +0000, Russell King (Oracle) wrote:
> The sja1105 DSA driver does not have a phylink_mac_config() method
> implementation, it is safe to mark this as a non-legacy driver.
>
> Signed-off-by: Russell King (Oracle) <rmk+kernel@...linux.org.uk>
> ---
Reviewed-by: Vladimir Oltean <olteanv@...il.com>
> drivers/net/dsa/sja1105/sja1105_main.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> 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.
> --
> 2.30.2
>
Powered by blists - more mailing lists