With a virtual PHC, don't try to switch to the physical PHC after a link-state change. JBOD and other multi-PHC configurations are not supported with vclocks yet.
Fixes: 9b9c2c58e6ed ("port: Check for virtual clocks.") Signed-off-by: Miroslav Lichvar <mlich...@redhat.com> --- Notes: v2: Rebased on latest code port.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/port.c b/port.c index ce1ff33..a0c8047 100644 --- a/port.c +++ b/port.c @@ -2682,8 +2682,9 @@ static void port_change_phc(struct port *p) { int required_modes; - /* Only switch phc with HW time stamping mode */ + /* Only switch a non-vclock PHC with HW time stamping. */ if (!interface_tsinfo_valid(p->iface) || + interface_get_vclock(p->iface) >= 0 || interface_phc_index(p->iface) < 0) return; -- 2.36.1 _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel