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

From: Ahmad Byagowi

Date: Thu Nov 26 2026 - 11:42:26 EST


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/20261126-timecard-core-v6-0-ahmadexp@xxxxxxxxx/

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
--
2.54.0 (Apple Git-157)