Netdev List
 help / color / mirror / Atom feed
From: James Clark <jjc@jclark.com>
To: Florian Fainelli <florian.fainelli@broadcom.com>,
	Andrew Lunn <andrew@lunn.ch>,
	Heiner Kallweit <hkallweit1@gmail.com>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Richard Cochran <richardcochran@gmail.com>
Cc: Russell King <linux@armlinux.org.uk>,
	Broadcom internal kernel review list
	<bcm-kernel-feedback-list@broadcom.com>,
	Jonathan Lemon <jonathan.lemon@gmail.com>,
	netdev@vger.kernel.org
Subject: [PATCH net 0/2] net: phy: broadcom: fix P2P timestamping
Date: Fri, 27 Nov 2026 16:50:10 +0700	[thread overview]
Message-ID: <cover.1795772837.git.jjc@jclark.com> (raw)

On a Raspberry Pi CM4 and CM5, the BCM54210PE PHY sends an incorrect
Pdelay_Resp, so a peer using P2P measures a path delay that is tens of
microseconds too large. This happens with both two-step and one-step
P2P, for different reasons, and the two patches fix them separately.

Users of the Raspberry Pi CM4 and CM5 reported the two-step problem:

https://github.com/jclark/rpi-cm4-ptp-guide/issues/34
https://github.com/jclark/rpi-cm4-ptp-guide/issues/49

Patch 1 fixes two-step P2P, the common case. Patch 2 fixes one-step
P2P, which the driver sets up as for two-step.

PTP over UDPv6 does not work in either E2E or P2P mode, because when
the PHY writes a timestamp into an outgoing message, it sets the UDP
checksum to zero; this series does not change this.

I used an LLM coding assistant to help prepare these patches.

James Clark (2):
  net: phy: broadcom: fix two-step P2P timestamping
  net: phy: broadcom: fix one-step P2P timestamping

 drivers/net/phy/bcm-phy-ptp.c | 19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)


base-commit: e1055cbfd6eb578417f3ce983cf44462e8465267
-- 
2.56.1


             reply	other threads:[~2026-11-27  9:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27  9:50 James Clark [this message]
2026-11-27  9:50 ` [PATCH net 1/2] net: phy: broadcom: fix two-step P2P timestamping James Clark
2026-11-27  9:50 ` [PATCH net 2/2] net: phy: broadcom: fix one-step " James Clark

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=cover.1795772837.git.jjc@jclark.com \
    --to=jjc@jclark.com \
    --cc=andrew@lunn.ch \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=florian.fainelli@broadcom.com \
    --cc=hkallweit1@gmail.com \
    --cc=jonathan.lemon@gmail.com \
    --cc=kuba@kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=richardcochran@gmail.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