On Thu, Feb 03, 2022 at 05:00:25PM +0100, Yannick Vignon wrote:
From: Yannick Vignon <yannick.vignon@xxxxxxx>
Even if protected from preemption and interrupts, a small time window
remains when the 2 register reads could return inconsistent values,
each time the "seconds" register changes. This could lead to an about
1-second error in the reported time.
Have you checked whether the hardware protects against this (i.o.w. the
hardware latches the PTP_STSR value when PTP_STNSR is read, or vice
versa? Several PTP devices I've looked at do this to allow consistent
reading.