[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4748d3a9-55e8-48f9-b281-60ec619bf304@lunn.ch>
Date: Thu, 7 Nov 2024 23:39:40 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Daniel Machon <daniel.machon@...rochip.com>
Cc: UNGLinuxDriver@...rochip.com, Andrew Lunn <andrew+netdev@...n.ch>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Lars Povlsen <lars.povlsen@...rochip.com>,
Steen Hegelund <Steen.Hegelund@...rochip.com>,
Horatiu Vultur <horatiu.vultur@...rochip.com>,
Russell King <linux@...linux.org.uk>, jacob.e.keller@...el.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH net-next 3/7] net: sparx5: use is_port_rgmii() throughout
> +++ b/drivers/net/ethernet/microchip/sparx5/sparx5_port.c
> @@ -1087,6 +1087,9 @@ int sparx5_port_init(struct sparx5 *sparx5,
> ANA_CL_FILTER_CTRL_FILTER_SMAC_MC_DIS,
> sparx5, ANA_CL_FILTER_CTRL(port->portno));
>
> + if (ops->is_port_rgmii(port->portno))
> + return 0;
> +
> /* Configure MAC vlan awareness */
> err = sparx5_port_max_tags_set(sparx5, port);
> if (err)
That looks odd. What has RGMII to do with MAC VLAN awareness?
Maybe it just needs a comment?
Andrew
Powered by blists - more mailing lists