On Mon, Jan 30, 2023 at 03:39:45PM +0000, Wojtek Wasko via Linuxptp-devel wrote: > @@ -62,8 +62,11 @@ void clockadj_set_freq(clockid_t clkid, double freq) > > tx.modes |= ADJ_FREQUENCY; > tx.freq = (long) (freq * 65.536); > - if (clock_adjtime(clkid, &tx) < 0) > + if (clock_adjtime(clkid, &tx) < 0) { > pr_err("failed to adjust the clock: %m"); > + return -1; > + }
Why not follow clockadj_get_freq() and simply exit here instead of trying to recover? What PHC/driver is expected to fail temporarily? -- Miroslav Lichvar _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel