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

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to