This bug was found on the Broadcom OneSync platform, where phc is
specified from command line and ptp4l receives link status notification.
When the above condition happens, program will fall in a loop of
keep getting EV_FAULT_DETECTED.

Signed-off-by: Min Li <min.li...@renesas.com>
---
 port.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/port.c b/port.c
index 756ff3a..118a57e 100644
--- a/port.c
+++ b/port.c
@@ -2742,7 +2742,7 @@ void port_link_status(void *ctx, int linkup, int ts_index)
         * the TS_LABEL_CHANGED flag.
         */
        interface_get_tsinfo(p->iface);
-       if (p->phc_index != interface_phc_index(p->iface))
+       if (p->phc_index != interface_phc_index(p->iface) && 
!p->phc_from_cmdline)
                p->link_status |= TS_LABEL_CHANGED;
 
        /* Both link down/up and change ts_label may change phc index. */
-- 
2.37.3



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

Reply via email to