On Tue, Nov 23, 2021 at 02:43:25PM -0800, Jacob Keller wrote: > The current implementation of test_phc cmp has a fallback flow for comparing > the PHC clock to the CLOCK_REAMTIME. This fallback flow calculates the > inverse offset compared to the offsets calculated by the PTP_SYS_OFFSET > ioctls. > > Fix this by replacing its implementation with the one from phc2sys. Move > read_phc function into clockadj.c to re-use it. > > Changes since v2 > * Fix doxygen parameters to use @param > * Add @return for clockadj_compare > * Reword description so its clear that it is sysclk minus clkid. > > Changes since v1 > * Make clockadj_compare return -1 on failure and 0 on success > * Fix callsites in phc2sys to handle this change > > Jacob Keller (2): > phc2sys: move read_phc into clock_adj.c > phc_ctl: replace calculate_offset with clockadj_compare
Series applied. Thanks, Richard _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel