[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250409144654.67fae016@fedora.home>
Date: Wed, 9 Apr 2025 14:46:54 +0200
From: Maxime Chevallier <maxime.chevallier@...tlin.com>
To: Kory Maincent <kory.maincent@...tlin.com>
Cc: "Russell King (Oracle)" <linux@...linux.org.uk>, Andrew Lunn
<andrew@...n.ch>, Heiner Kallweit <hkallweit1@...il.com>, "David S. Miller"
<davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>, Jakub Kicinski
<kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>, Marek BehĂșn <kabel@...nel.org>, Richard Cochran
<richardcochran@...il.com>, Thomas Petazzoni
<thomas.petazzoni@...tlin.com>, linux-kernel@...r.kernel.org,
netdev@...r.kernel.org, Vladimir Oltean <vladimir.oltean@....com>
Subject: Re: [PATCH net-next v2 0/2] Add Marvell PHY PTP support
On Wed, 9 Apr 2025 14:23:09 +0200
Kory Maincent <kory.maincent@...tlin.com> wrote:
> On Wed, 9 Apr 2025 10:29:52 +0100
> "Russell King (Oracle)" <linux@...linux.org.uk> 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@...linux.org.uk> 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?
How about an enum instead of a string indicating the device type, and if
PHY, the phy_index ? (phy ID has another meaning :) )
Maxime
Powered by blists - more mailing lists