Re: [PATCH net-next v2 0/2] Add Marvell PHY PTP support
From: Kory Maincent
Date: Wed Apr 09 2025 - 08:24:58 EST
On Wed, 9 Apr 2025 10:29:52 +0100
"Russell King (Oracle)" <linux@xxxxxxxxxxxxxxx> wrote:
> On Wed, Apr 09, 2025 at 10:46:37AM +0200, Kory Maincent wrote:
> > On Wed, 9 Apr 2025 09:35:59 +0100
> > "Russell King (Oracle)" <linux@xxxxxxxxxxxxxxx> wrote:
> > > Right, and that means that the kernel is not yet ready to support
> > > Marvell PHY PTP, because all the pre-requisits to avoid breaking
> > > mvpp2 have not yet been merged.
> >
> > Still I don't understand how this break mvpp2.
> > As you just tested this won't switch to the PHY PTP implementation.
>
> How do I know that from the output? Nothing in the output appears to
> tells me which PTP implementation will be used.
>
> Maybe you have some understanding that makes this obvious that I don't
> have.
You are right there is no report of the PTP source device info in ethtool.
With all the design change of the PTP series this has not made through my brain
that we lost this information along the way.
You can still know the source like that but that's not the best.
# ls -l /sys/class/ptp
It will be easy to add the source name support in netlink but which names are
better report to the user?
- dev_name of the netdev->dev and phydev->mdio.dev?
Maybe not the best naming for the phy PTP source
(ff0d0000.ethernet-ffffffff:01)
- "PHY" + the PHY ID and "MAC" string?
- Another idea?
Regards,
--
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com