Thread (10 messages) 10 messages, 2 authors, 2025-10-31

Re: [PATCH net-next 2/4] net: altera-tse: Read core revision before registering netdev

From: Andrew Lunn <andrew@lunn.ch>
Date: 2025-10-31 16:15:58
Also in: lkml, netdev

On Thu, Oct 30, 2025 at 11:24:15AM +0100, Maxime Chevallier wrote:
The core revision is used in .ndo_open(), so we have to populate it
before regstering the netdev.
All that open does is:

	if ((priv->revision < 0xd00) || (priv->revision > 0xe00))
		netdev_warn(dev, "TSE revision %x\n", priv->revision);

So i agree this does not need a Fixes: tag.

But i do wounder why this is in open. The revision has already been
printed once in probe. Are values < 0xd00 or > 0xe00 significant? Is
this left over code and some actions that were previously here are now
gone?

Maybe a better fix is to remove this, and make revision local in
probe?

      Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help