Netdev List
 help / color / mirror / Atom feed
* [PATCH net 0/2] net: phy: broadcom: fix P2P timestamping
@ 2026-11-27  9:50 James Clark
  2026-11-27  9:50 ` [PATCH net 1/2] net: phy: broadcom: fix two-step " James Clark
  2026-11-27  9:50 ` [PATCH net 2/2] net: phy: broadcom: fix one-step " James Clark
  0 siblings, 2 replies; 3+ messages in thread
From: James Clark @ 2026-11-27  9:50 UTC (permalink / raw)
  To: Florian Fainelli, Andrew Lunn, Heiner Kallweit, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Richard Cochran
  Cc: Russell King, Broadcom internal kernel review list,
	Jonathan Lemon, netdev

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-27  9:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27  9:50 [PATCH net 0/2] net: phy: broadcom: fix P2P timestamping James Clark
2026-11-27  9:50 ` [PATCH net 1/2] net: phy: broadcom: fix two-step " James Clark
2026-11-27  9:50 ` [PATCH net 2/2] net: phy: broadcom: fix one-step " James Clark

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox