Re: [Linuxptp-devel] [PATCH] Added support for opening POSIX clock devices

2019-01-06 Thread Richard Cochran
On Thu, Nov 08, 2018 at 03:05:12PM +0100, Dimitrios Katsaros wrote: > @@ -38,10 +38,11 @@ > > static int phc_get_caps(clockid_t clkid, struct ptp_clock_caps *caps); > > -clockid_t phc_open(char *phc) > +clockid_t phc_open(const char *phc) > { > clockid_t clkid; > - struct

[Linuxptp-devel] [PATCH] Added support for opening POSIX clock devices

2018-11-08 Thread Dimitrios Katsaros
I have reduced the requirements for the -p option to accept any type of device. With this it should be possible to use ptp4l to syncronize any clock device that implements the kernel POSIX clock interface. Signed-off-by: Dimitrios Katsaros --- clock.c| 11 +-- clockadj.c | 43

Re: [Linuxptp-devel] [PATCH] Added support for opening POSIX clock devices

2018-11-08 Thread Richard Cochran
On Thu, Nov 08, 2018 at 02:48:10PM +0100, Dimitrios Katsaros wrote: > Maybe I am missing something, but from what I can see from my demo, I can > set -S with this patch. Maybe there is something else I am not aware of? You are right, never mind. Thanks, Richard

Re: [Linuxptp-devel] [PATCH] Added support for opening POSIX clock devices

2018-11-08 Thread Dimitrios Katsaros
Maybe I am missing something, but from what I can see from my demo, I can set -S with this patch. Maybe there is something else I am not aware of? I will also change the patch to also check clock_adjtime on device open On Thu, Nov 8, 2018, 2:29 PM Richard Cochran wrote: > On Thu, Nov 08, 2018

Re: [Linuxptp-devel] [PATCH] Added support for opening POSIX clock devices

2018-11-08 Thread Richard Cochran
On Thu, Nov 08, 2018 at 02:09:09PM +0100, Dimitrios Katsaros wrote: > @@ -1053,6 +1052,14 @@ struct clock *clock_create(enum clock_type type, > struct config *config, > return NULL; > } > clockadj_init(c->clkid); > + } else if (phc_device) { >

[Linuxptp-devel] [PATCH] Added support for opening POSIX clock devices

2018-11-08 Thread Dimitrios Katsaros
I have reduced the requirements for the -p option to accept any type of device. With this it should be possible to use ptp4l to syncronize any clock device that implements the kernel POSIX clock interface. Signed-off-by: Dimitrios Katsaros --- clock.c| 11 +-- clockadj.c | 43