Subject: Re: [PATCH net-next v2 11/12] net: phy: marvell10g: print exact model

From: Marek Behún <[email-masked]>
Date: Fri, 26 Mar 2021 12:11:41 +0100

On Fri, 26 Mar 2021 09:07:34 +0000
Russell King - ARM Linux admin <[email-masked]> wrote:

> > Nice, didn't know about that. But I fear whether this would always work
> > for the 88X3310 vs 88X3310P, it is possible that this feature is only
> > recognizable if the firmware in the PHY is already running.  
> 
> The ID registers aren't programmable and contain the proper IDs even if
> there isn't firmware loaded (I've had such a PHY here.)
> 

Yes, but the macsec feature bit is in register
MDIO_MMD_PMAPMD.MV_PMA_XGSTAT.12 (1.c001.12)

But it says "This bit is valid upon completion of reset (1.0.15 = 0)",
so it seems we can use this. :)

Marek