RE: [PATCH net-next 4/5] onsemi: ncn260xx: Add driver support for NCN26010 and TS2500 MAC-PHY

From: Selvamani Rajagopal

Date: Mon May 04 2026 - 16:51:44 EST




> -----Original Message-----
> From: Andrew Lunn <andrew@xxxxxxx>
> Sent: Monday, May 4, 2026 12:24 PM
> To: Selvamani Rajagopal <Selvamani.Rajagopal@xxxxxxxxxx>
> Cc: Piergiorgio Beruto <Pier.Beruto@xxxxxxxxxx>; andrew+netdev@xxxxxxx;
> davem@xxxxxxxxxxxxx; edumazet@xxxxxxxxxx; kuba@xxxxxxxxxx; pabeni@xxxxxxxxxx;
> netdev@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx
> Subject: Re: [PATCH net-next 4/5] onsemi: ncn260xx: Add driver support for NCN26010
> and TS2500 MAC-PHY
>
>
> This Message Is From an External Sender
> This message came from outside your organization.
>
> > > You failed to answer my question about this. What happens with your
> > > device if you access C45 registers which don't exist?
> >
> > Sorry. Waiting for an answer from hardware designer.
>
> It should not be too difficult to program up something like:
>
> for (int mmd = 0 ; mmd < 32; mmd++)
> for (int reg = 0; reg < 65535; reg++) {
> val = phy_read_mmd(phydev, mmd, reg);
> printf("%2x %4x: %4x\m", mmd, reg, val);
> }

Andrew, I had replied with the answer earlier. The answer is, yes. it would return 0.

Recent update is that after talking to our product team, we want to submit the support for TS2500 first which doesn't require the quirks we are discussing. It is the older chip, NCN26010 that requires
the quirk flag you suggested.

In short, next version would have modification to OA TC6 framework to add hardware timestamp support only. We will revisit support for older, NCN26010 that requires modification to the way MDIO bus API are handled, later.

Will re-submit soon after removing support for NCN26010.

>
> Andrew