]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: ocp: Have FPGA fold in ns adjustment for adjtime.
authorJonathan Lemon <jonathan.lemon@gmail.com>
Wed, 15 Sep 2021 02:16:34 +0000 (19:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Sep 2021 10:10:01 +0000 (11:10 +0100)
commit917de1d917eee60cb7f0c987b5bde26d5edd9a27
tree1bd6ca1ba065ae0414ae55b411c9b9d808982c3c
parent79d12d6d333ba519d248549bfecc21fd2610c877
ptp: ocp: Have FPGA fold in ns adjustment for adjtime.

The current implementation of adjtime uses gettime/settime to
perform nanosecond adjustments.  This introduces addtional phase
errors due to delays.

Instead, use the FPGA's ability to just apply the nanosecond
adjustment to the clock directly.

Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_ocp.c