This series adds support for more accurate measurement of the offset between a PHC and the system clock.
The first patch fixes a valgrind warning. The second, third and fourth patches add support for new ioctls. The fifth patch improves accuracy of PHC synchronization. The sixth patch fixes a crash I came across when testing the new code. Miroslav Lichvar (6): sysoff: Initialize data for ioctl(PTP_SYS_OFFSET). sysoff: Extend API for different sysoff methods. sysoff: Add support for PTP_SYS_OFFSET_PRECISE ioctl. sysoff: Add support for PTP_SYS_OFFSET_EXTENDED ioctl. phc2sys: Use reversed sysoff when synchronizing to system clock. phc2sys: Fix crash when trying to synchronize unadjustable clock. phc2sys.c | 27 ++++++++++++++---- phc_ctl.c | 8 ++++-- sysoff.c | 83 ++++++++++++++++++++++++++++++++++++++++++++++++------- sysoff.h | 14 ++++++---- 4 files changed, 108 insertions(+), 24 deletions(-) -- 2.17.2 _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel