linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 net-next 0/3] ptp: add pulse signal loopback support for debugging
@ 2025-09-05  3:07 Wei Fang
  2025-09-05  3:07 ` [PATCH v2 net-next 1/3] ptp: add debugfs interfaces to loop back the periodic output signal Wei Fang
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Wei Fang @ 2025-09-05  3:07 UTC (permalink / raw)
  To: richardcochran, andrew+netdev, davem, edumazet, kuba, pabeni,
	vladimir.oltean, xiaoning.wang, Frank.Li, yangbo.lu,
	christophe.leroy
  Cc: netdev, linux-kernel, linuxppc-dev, linux-arm-kernel, imx

Some PTP devices support looping back the periodic pulse signal for
debugging. For example, the PTP device of QorIQ platform and the NETC v4
Timer has the ability to loop back the pulse signal and record the extts
events for the loopback signal. So we can make sure that the pulse
intervals and their phase alignment are correct from the perspective of
the emitting PHC's time base. In addition, we can use this loopback
feature as a built-in extts event generator when we have no external
equipment which does that. Therefore, add the generic debugfs interfaces
to the ptp_clock driver. The first two patch are separated from the
previous patch set [1]. The third patch is new added.

[1]: https://lore.kernel.org/imx/20250827063332.1217664-1-wei.fang@nxp.com/ #patch 3 and 9

---
v2 changes:
1. The value of "enable" is restricted to 0 or 1.
2. Fix the typo: covert --> convert
3. Improve the cover-letter
---

Wei Fang (3):
  ptp: add debugfs interfaces to loop back the periodic output signal
  ptp: netc: add the periodic output signal loopback support
  ptp: qoriq: convert to use generic interfaces to set loopback mode

 MAINTAINERS                      |   1 -
 drivers/ptp/Kconfig              |   2 +-
 drivers/ptp/Makefile             |   4 +-
 drivers/ptp/ptp_clock.c          |  69 +++++++++++++++++++++
 drivers/ptp/ptp_netc.c           |  25 ++++++++
 drivers/ptp/ptp_qoriq.c          |  24 +++++++-
 drivers/ptp/ptp_qoriq_debugfs.c  | 101 -------------------------------
 include/linux/fsl/ptp_qoriq.h    |  10 ---
 include/linux/ptp_clock_kernel.h |  10 +++
 9 files changed, 128 insertions(+), 118 deletions(-)
 delete mode 100644 drivers/ptp/ptp_qoriq_debugfs.c

-- 
2.34.1



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

end of thread, other threads:[~2025-09-10  2:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-05  3:07 [PATCH v2 net-next 0/3] ptp: add pulse signal loopback support for debugging Wei Fang
2025-09-05  3:07 ` [PATCH v2 net-next 1/3] ptp: add debugfs interfaces to loop back the periodic output signal Wei Fang
2025-09-05  3:07 ` [PATCH v2 net-next 2/3] ptp: netc: add the periodic output signal loopback support Wei Fang
2025-09-05  3:07 ` [PATCH v2 net-next 3/3] ptp: qoriq: convert to use generic interfaces to set loopback mode Wei Fang
2025-09-10  2:40 ` [PATCH v2 net-next 0/3] ptp: add pulse signal loopback support for debugging patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).