[PATCH net-next 2/4] net: altera-tse: Read core revision before registering netdev
Andrew Lunn
andrew at lunn.ch
Fri Oct 31 09:15:50 PDT 2025
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
More information about the linux-arm-kernel
mailing list