On Thu, Jun 22, 2023 at 11:00:52PM -0700, Jacob Keller wrote: > The PTP_CLOCK_GETCAPS ioctl call in phc_ctl has a conditional check for > whether to report the caps.adjust_phase bit. This is always set for both > PTP_CLOCK_GETCAPS and PTP_CLOCK_GETCAPS2, and was always zero before the > bit was moved from being reserved to indicate the adjust_phase. > > In some sense if we lack PTP_CLOCK_GETCAPS2 we know the kernel won't report > adjust_phase, but in reality such kernel versions did not have > adjust_phase at all. > > There's no reason to make this check against PTP_CLOCK_GETCAPS2. Instead, > scan the ptp_clock.h header file and check if we have adjust_phase support. > Use this new flag instead of PTP_CLOCK_GETCAPS2. > > Signed-off-by: Jacob Keller <jacob.e.kel...@intel.com>
Applied. Thanks, Richard _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel