Skip to content

ptp: fix OCP routes and SJA1105 pin direction

Ahmad Byagowi lkml netdev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v6 Latest8 patches 0 repliesNew

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8net: dsa: sja1105: keep pin function on EXTTS disabledrivers/net/dsa/sja1105/sja1105_ptp.c+5 -30 replies
2/8net: dsa: sja1105: keep pin function on PEROUT disabledrivers/net/dsa/sja1105/sja1105_ptp.c+5 -30 replies
3/8ptp: ocp: preserve timestamp routes on DPLL frequency changesdrivers/ptp/ptp_ocp.c+42 -50 replies
4/8ptp: ocp: restore disabled SMA inputs when bindingdrivers/ptp/ptp_ocp.c+8 -00 replies
5/8ptp: ocp: report disabled SMA inputs as zero Hzdrivers/ptp/ptp_ocp.c+2 -00 replies
6/8ptp: ocp: correct the DCF output frequencydrivers/ptp/ptp_ocp.c+1 -10 replies
7/8ptp: ocp: match ART DPLL frequencies to selectorsdrivers/ptp/ptp_ocp.c+8 -30 replies
8/8ptp: ocp: defer timestamp shutdown to clock unregisterdrivers/ptp/ptp_ocp.c+0 -130 replies

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by.

PatchVadim Fedorenko
1/8
2/8
3/8
4/8
5/8
6/8R-b
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH net v6 0/8] ptp: fix OCP routes and SJA1105 pin direction

This driver series contains the SJA1105 pin-direction fixes and OCP SMA/DPLL corrections. It is separate from the PTP core series as requested in review. The PTP core v6 series is a prerequisite; apply this series only after those core changes. This series contains no ptp_chardev.c or ptp_sysfs.c changes.

Prerequisite PTP core series:
https://lore.kernel.org/r/[email protected]/

The teardown follow-up removes ptp_ocp's early timestamp-disable loop so the new core unregister cleanup disables channels after user operations drain. The existing shared-PPS map shortcut is unchanged. The DCF correction is unchanged and retains Vadim's Reviewed-by tag; tags were not carried onto patches changed in this revision.

Validation: strict x86_64 object build for the PTP core, OCP driver and SJA1105 PTP object with W=1 KCFLAGS=-Werror; source-derived teardown and sysfs/ioctl race tests; SMA routing, DPLL get/set and ART capability tests; runtime mutations reject missing sysfs locks. Hardware register and IRQ operations were stubbed. No physical card or switch was tested.

A coding assistant helped identify the issues, develop the fixes and regression tests, and prepare changelog text.

Ahmad Byagowi (8):
net: dsa: sja1105: keep pin function on EXTTS disable
net: dsa: sja1105: keep pin function on PEROUT disable
ptp: ocp: preserve timestamp routes on DPLL frequency changes
ptp: ocp: restore disabled SMA inputs when binding
ptp: ocp: report disabled SMA inputs as zero Hz
ptp: ocp: correct the DCF output frequency
ptp: ocp: match ART DPLL frequencies to selectors
ptp: ocp: defer timestamp shutdown to clock unregister

 drivers/net/dsa/sja1105/sja1105_ptp.c | 16 ++++--
 drivers/ptp/ptp_ocp.c                 | 83 ++++++++++++++++++++-------
 2 files changed, 71 insertions(+), 28 deletions(-)

base-commit: 4392bb809812ac79449cd0cf1f5e00469ee102d1
prerequisite-patch-id: 6bad78c955ada1724510b31a0276a3208ce76a5c
prerequisite-patch-id: dc638755165b24f907f718a498e20d4aa1c6190a

Signature · 1 line
2.54.0 (Apple Git-157)