On Tue, Jan 12, 2021 at 11:54:47PM -0800, Alex Sergeev wrote:
> The current version of the code resets status flags, with the exception
> of the leap second flag.
> 
> The fix is to read previously set flags and add STA_INS/STA_DEL on top
> of them.

Can you please describe the use case when the status shouldn't be
reset? And why only in the sysclk_set_leap() function and not in
sysclk_set_sync()?

In any case, I think the realtime_leap_bit variable should contain
just the STA_INS or STA_DEL flag, not other unreleated flags.

-- 
Miroslav Lichvar



_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to