From: Andrew Lunn <andrew@lunn.ch>
To: Javen <javen_xu@realsil.com.cn>
Cc: Vladimir Oltean <vladimir.oltean@nxp.com>,
"hkallweit1@gmail.com" <hkallweit1@gmail.com>,
"linux@armlinux.org.uk" <linux@armlinux.org.uk>,
"davem@davemloft.net" <davem@davemloft.net>,
"edumazet@google.com" <edumazet@google.com>,
"kuba@kernel.org" <kuba@kernel.org>,
"pabeni@redhat.com" <pabeni@redhat.com>,
"nb@tipi-net.de" <nb@tipi-net.de>,
"maxime.chevallier@bootlin.com" <maxime.chevallier@bootlin.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"daniel@makrotopia.org" <daniel@makrotopia.org>
Subject: Re: [PATCH net-next v4 3/3] net: phy: realtek: add hardware timestamping for RTL8127a
Date: Thu, 26 Nov 2026 15:08:23 +0100 [thread overview]
Message-ID: <07ddc9e6-2604-47d4-9e68-eedfaa4ee142@lunn.ch> (raw)
In-Reply-To: <15f473435a41440da45c6d070edc1128@realsil.com.cn>
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
prev parent reply other threads:[~2026-11-26 14:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 9:02 [PATCH net-next v4 0/3] net: phy: realtek: add PTP support " javen
2026-11-25 9:02 ` [PATCH net-next v4 1/3] r8169: hold MDIO bus lock while loading firmware javen
2026-11-25 9:02 ` [PATCH net-next v4 2/3] net: phy: realtek: add PTP clock support for RTL8127a javen
2026-11-25 9:02 ` [PATCH net-next v4 3/3] net: phy: realtek: add hardware timestamping " javen
2026-11-25 9:43 ` Vladimir Oltean
2026-11-26 6:13 ` Javen
2026-11-26 14:08 ` Andrew Lunn [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=07ddc9e6-2604-47d4-9e68-eedfaa4ee142@lunn.ch \
--to=andrew@lunn.ch \
--cc=daniel@makrotopia.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=javen_xu@realsil.com.cn \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=maxime.chevallier@bootlin.com \
--cc=nb@tipi-net.de \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=vladimir.oltean@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®