[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1435275777-3918-1-git-send-email-christopher.s.hall@intel.com>
Date: Thu, 25 Jun 2015 16:42:56 -0700
From: Christopher Hall <christopher.s.hall@...el.com>
To: richardcochran@...il.com
Cc: netdev@...r.kernel.org, jacob.e.keller@...el.com,
john.ronciak@...el.com, kevin.b.stanton@...el.com,
christopher.s.hall@...el.com
Subject: [PATCH] Add PTP cross-timestamp to the PTP driver interface
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 majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists