]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: ocp: adjust utc_tai_offset to TOD info
authorVadim Fedorenko <vadfed@fb.com>
Wed, 2 Mar 2022 21:34:58 +0000 (13:34 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Mar 2022 14:42:46 +0000 (14:42 +0000)
commitaf7e25c4bd69dcbe440b372f1c5045b6d00057f5
tree751d2cd7b3b4feab7ae623d14d94abbb726230b0
parentaedc993df51cfc2095f8cb2723a8ace748c2e03a
ptp: ocp: adjust utc_tai_offset to TOD info

utc_tai_offset is used to correct IRIG, DCF and NMEA outputs and is
set during initialisation but is not corrected during leap second
announce event.  Add watchdog code to control this correction.

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