Grygorii,

On Thu, Dec 24, 2020 at 06:36:17PM +0200, Grygorii Strashko wrote:
> The cause of the issue is that both ptp4l and phc2sys could be syncing the 
> same
> PHC clock while Port is in UNCALIBRATED state. This happens because
> in reconfigure() the check [1]
> 
> [1]   if (dst_cnt > 1 && !src) {
>       ...
>       if (src_cnt > 1) {
>       ...
> [2]   if (src_cnt > 0 && !src) {
>       ...
>       if (!src_cnt && !dst_cnt) {
>       ...

> To fix an issue the check [2] is moved down which makes phc2sys to wait for
> ptp4l to settle.

Good find!  I really appreciate your clear analysis and explanation.

Thanks,
Richard


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

Reply via email to