Skip to content

ptp: add pseudo pps ioctl

Richard Cochran netdev 2 versions – Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest1 patch 1 replyApplied
  2. v1 RFC1 patch 4 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/1ptp: add an ioctl to compare PHC time with system timedrivers/ptp/ptp_chardev.c include/uapi/linux/ptp_clock.h+46 -01 reply

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchJacob Keller
1/1A-b

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

Read the v2 thread

Cover letter [PATCH V2 net-next 0/1] ptp: add pseudo pps ioctl

No changes in V2, except removing the RFC label and adding Jacob's ack.

This patch adds a kind of "poor man's PPS" for use with those PHC drivers which do not support a true PPS. Using this ioctl, user space can estimate the system-phc offset and tune one of the clocks as desired.

This patch has been tested on both the Intel igb (PCIe card) and the National Semiconductor phyter (PHY via MDIO bus), and the results seem quite promising.

This patch avoids the "timecompare" code on purpose, since experiments have shown that code to be quite brittle, having been tuned to only one specific kind of hardware.

Thanks,
Richard

Richard Cochran (1):
ptp: add an ioctl to compare PHC time with system time

 drivers/ptp/ptp_chardev.c      |   32 ++++++++++++++++++++++++++++++++
 include/uapi/linux/ptp_clock.h |   14 ++++++++++++++
 2 files changed, 46 insertions(+), 0 deletions(-)
Signature · 1 line
1.7.2.5