netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC net-next 0/1] ptp: add pseudo pps ioctl
@ 2012-09-27 18:12 Richard Cochran
  2012-09-27 18:12 ` [PATCH RFC net-next 1/1] ptp: add an ioctl to compare PHC time with system time Richard Cochran
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Cochran @ 2012-09-27 18:12 UTC (permalink / raw)
  To: netdev; +Cc: David Miller, Jacob Keller, John Stultz, Miroslav Lichvar

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/linux/ptp_clock.h |   14 ++++++++++++++
 2 files changed, 46 insertions(+), 0 deletions(-)

-- 
1.7.2.5

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

end of thread, other threads:[~2012-10-01 22:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-27 18:12 [PATCH RFC net-next 0/1] ptp: add pseudo pps ioctl Richard Cochran
2012-09-27 18:12 ` [PATCH RFC net-next 1/1] ptp: add an ioctl to compare PHC time with system time Richard Cochran
2012-09-28  7:53   ` Miroslav Lichvar
2012-09-28  8:26     ` Richard Cochran
2012-09-28  8:50       ` Miroslav Lichvar
2012-10-01 22:33   ` Keller, Jacob E

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