netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Add PTP cross-timestamp to the PTP driver interface
@ 2015-06-25 23:42 Christopher Hall
  2015-06-25 23:42 ` [PATCH] Added additional callback to ptp_clock_info: Christopher Hall
  2015-06-26  6:55 ` [PATCH] Add PTP cross-timestamp to the PTP driver interface Richard Cochran
  0 siblings, 2 replies; 5+ messages in thread
From: Christopher Hall @ 2015-06-25 23:42 UTC (permalink / raw)
  To: richardcochran
  Cc: netdev, jacob.e.keller, john.ronciak, kevin.b.stanton,
	christopher.s.hall

This patch allows system and device time ("cross-timestamp") to be performed 
by the driver. Currently, the timestamping is performed in the PTP_SYS_OFFSET 
ioctl.  It reads gettimeofday() and the gettime64() callback provided by the 
driver. The cross-timestamp is best effort ignoring the latency between the 
capture of system time (getnstimeofday()) and the device time 
(driver callback).

This patch adds an additional callback getsynctime64(). Which will be called 
when the driver is able to perform a more accurate, implementation specific 
cross-timestamp.  The ioctl code uses the callback when available.

Additionally, the callback, getsynctime64(), will only be called when 
n_samples == 1 because the driver returns only 1 cross-timestamp where 
multiple samples cannot be chained together.


Christopher Hall (1):
  Added additional callback to ptp_clock_info:

 drivers/ptp/ptp_chardev.c        | 30 +++++++++++++++++++++---------
 include/linux/ptp_clock_kernel.h |  3 +++
 2 files changed, 24 insertions(+), 9 deletions(-)

-- 
1.9.1

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

end of thread, other threads:[~2015-06-26 15:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-25 23:42 [PATCH] Add PTP cross-timestamp to the PTP driver interface Christopher Hall
2015-06-25 23:42 ` [PATCH] Added additional callback to ptp_clock_info: Christopher Hall
2015-06-26  6:40   ` Richard Cochran
2015-06-26  6:55 ` [PATCH] Add PTP cross-timestamp to the PTP driver interface Richard Cochran
2015-06-26 15:24   ` 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).