Re: [Linuxptp-users] Switching PHC when link goes down and up again
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Osterried M. (ETAS-DAP/XPC-Fe3) <mar...@et...> - 2022-07-14 14:08:19
|
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 |