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)
commite68462a0d99dff5879ca10d4d1da978e6142c9ec
tree751d2cd7b3b4feab7ae623d14d94abbb726230b0
parent44a412d13b31fdfdb79e76f9c959e83f86dfe578
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