Hi Miroslav,
yes, this patch helps in my use case, thanks.

Regards
Markus


---------------------------------------------------------------------------------------

It's a bug.

Can you please try it with this patch?

--- a/port.c
+++ b/port.c
@@ -2708,7 +2708,8 @@ void port_link_status(void *ctx, int linkup, int ts_index)
 
                /* Only switch phc with HW time stamping mode */
                if (interface_tsinfo_valid(p->iface) &&
-                   interface_phc_index(p->iface) >= 0) {
+                   interface_phc_index(p->iface) >= 0 &&
+                   interface_get_vclock(p->iface) < 0) {
                        required_modes = clock_required_modes(p->clock);
                        if (!interface_tsmodes_supported(p->iface, 
required_modes)) {
                                pr_err("interface '%s' does not support 
requested "

-- 
Miroslav Lichvar



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

Reply via email to