Re: [PATCH net-next v4 3/3] net: phy: realtek: add hardware timestamping for RTL8127a
From: Andrew Lunn
Date: Thu Nov 26 2026 - 09:09:30 EST
On Thu, Nov 26, 2026 at 06:13:55AM +0000, Javen wrote:
> >
> >
> >On Wed, Nov 25, 2026 at 05:02:16PM +0800, javen wrote:
> >> + phydev->default_timestamp = true;
> >
> >Enabling new instances of phydev->default_timestamp is not an option that
> >you have. Did you research why it exists?
>
> Hi Vladimir,
>
> Thanks for review. I understand that phydev->default_timestamp was
> introduced to preserve legacy behavior. However, RTL8127A doesn't
> support mac ptp. The PHY is the only hardware timestamping block
> available on this link. Without setting default_timestamp = true,
> the current core framework simply breaks for this PHY-only chip.
> How would you prefer handling such hardware without mac ptp? Any
> suggestion would be great helpful.
That sounds like something is broken somewhere. This should only come
into effect when there are two stampers available, e.g. a Marvell PHY
connected to a Marvell Switch. As far as i remember, the PHY one is
partially broken, so you want to use the MAC one, if available.
However, if there is no choice, i would not expect default_timestamp
to do anything.
Please spend some time to understand what is going on here.
Andrew