Re: [PATCH net 2/2] ptp: idt82p33: implement double dco time correction

From: Richard Cochran
Date: Wed Jun 23 2021 - 23:43:50 EST


On Wed, Jun 23, 2021 at 10:46:25AM -0400, min.li.xe@xxxxxxxxxxx wrote:
> +static int idt82p33_start_ddco(struct idt82p33_channel *channel, s32 delta_ns)
> +{
> + s32 current_ppm = channel->current_freq;
> + u32 duration_ms = MSEC_PER_SEC;

What happens if user space makes a new adjustment before this
completes?

After all, some PTP profiles update the clock several times per
second.

Thanks,
Richard