On Wed, Jun 05, 2019 at 01:23:49PM -0700, Jeff Kirsher wrote: > + * It calculates when the system time will be on an exact second, and then > + * aligns the start of the PPS signal to that value. > + * > + * This works by using the cycle counter shift and mult values in reverse, > and > + * assumes that the values we're shifting will not overflow.
So I guess that this device can't adjust the frequency in hardware, and that is why the driver uses a timecounter. BUT your PPS will not be correct. You use the 'mult' to calculate the future counter time of the PPS, but as soon as the PTP stack adjusts the frequency (and changes 'mult') the PPS will occur at the wrong time. Sorry to say it, Richard