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: Tue, 1 Dec 2026 02:25:10 +0100 [thread overview]
Message-ID: <907fa080-bc18-4c1f-8b52-b06b892cdaa5@lunn.ch> (raw)
In-Reply-To: <43e9de91177b4ffaa7b1c22c45109578@realsil.com.cn>
> When both mac and phy support ptp timestamp, and the user has not
> selected a provider(dev->hwprov is NULL), the core uses the mac.
We try to keep policy out of the kernel. It is policy to decide which
stamper to use, so it should be userspace which decides and sets
dev->hwprov. This is however a new feature, so we need to ensure it
does not cause regressions with older code. So that is what this
phy_is_default_hwtstamp() is about. The Marvell stampers have been
around a while.
Since yours is a new device, you should be using dev->hwprov. I guess
it is a reasonably simple patch to ptp4l.
Andrew
next prev parent reply other threads:[~2026-12-01 1:25 UTC|newest]
Thread overview: 12+ 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 for RTL8127a javen
2026-11-25 9:02 ` [PATCH net-next v4 1/3] r8169: hold MDIO bus lock while loading firmware javen
2026-11-29 9:50 ` netdev-bot+sashiko
2026-11-25 9:02 ` [PATCH net-next v4 2/3] net: phy: realtek: add PTP clock support for RTL8127a javen
2026-11-29 9:50 ` netdev-bot+sashiko
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
2026-11-30 3:35 ` Javen
2026-12-01 1:25 ` Andrew Lunn [this message]
2026-11-29 9:50 ` netdev-bot+sashiko
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=907fa080-bc18-4c1f-8b52-b06b892cdaa5@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