All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2 net-next 0/1] ptp: add pseudo pps ioctl
@ 2012-10-31 16:19 Richard Cochran
  2012-10-31 16:19 ` [PATCH V2 net-next 1/1] ptp: add an ioctl to compare PHC time with system time Richard Cochran
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Cochran @ 2012-10-31 16:19 UTC (permalink / raw)
  To: netdev; +Cc: David Miller, Jacob Keller, John Stultz, Miroslav Lichvar

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(-)

-- 
1.7.2.5

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

end of thread, other threads:[~2012-11-01 15:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-31 16:19 [PATCH V2 net-next 0/1] ptp: add pseudo pps ioctl Richard Cochran
2012-10-31 16:19 ` [PATCH V2 net-next 1/1] ptp: add an ioctl to compare PHC time with system time Richard Cochran
2012-11-01 15:42   ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.