[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241108085956.pr23rcnkhleoesnl@DEN-DL-M70577>
Date: Fri, 8 Nov 2024 08:59:56 +0000
From: Daniel Machon <daniel.machon@...rochip.com>
To: Andrew Lunn <andrew@...n.ch>
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
Hi Andrew,
> > +++ 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?
The sparx5_port_init() function initializes the RGMII port device (and
the other types of devices too). After the common configuration is done,
we bail out, as we do not want to configure any 2g5, 5g, 10g or 25g
stuff.
I can add a comment, sure.
>
> Andrew
/Daniel
Powered by blists - more mailing lists