Re: [Linuxptp-devel] [PATCH v1] phc_ctl: Implement setting frequency from system time.

2023-11-10 Thread Richard Cochran
On Fri, Nov 10, 2023 at 11:16:38AM +0100, Maciek Machnikowski wrote: > In my tests it worked fine, but I'd be more than happy to increase it - > would 5s be sufficient there? It should be more like 25 seconds, but you may have very loose requirements. In any case: - The interval must be

Re: [Linuxptp-devel] [PATCH v1] phc_ctl: Implement setting frequency from system time.

2023-11-10 Thread Maciek Machnikowski
On 11/10/2023 7:02 AM, Richard Cochran wrote: > On Wed, Sep 13, 2023 at 05:09:04PM +, Maciek Machnikowski wrote: >> Implement auto mode for frequency setting. In this mode the tool >> will measure the frequency difference between PHC and CLOCK_REALTIME >> and apply the correction to the PHC

Re: [Linuxptp-devel] [PATCH v1] phc_ctl: Implement setting frequency from system time.

2023-11-09 Thread Richard Cochran
On Wed, Sep 13, 2023 at 05:09:04PM +, Maciek Machnikowski wrote: > Implement auto mode for frequency setting. In this mode the tool > will measure the frequency difference between PHC and CLOCK_REALTIME > and apply the correction to the PHC to match the system clock. ... > + /*

[Linuxptp-devel] [PATCH v1] phc_ctl: Implement setting frequency from system time.

2023-09-13 Thread Maciek Machnikowski
Implement auto mode for frequency setting. In this mode the tool will measure the frequency difference between PHC and CLOCK_REALTIME and apply the correction to the PHC to match the system clock. Signed-off-by: Maciek Machnikowski --- phc_ctl.8 | 13 +++- phc_ctl.c | 92