Re: [Linuxptp-devel] Adding libpmc

2020-04-16 Thread Geva, Erez
Hi, I see that linux PTP is under GPL 2. I would like to ask your permission to allow using a libpmc library and headers needed by it under LGPL 2. As you are the copywrite holders, we need your explicit consent. Thanks Erez Geva From: Geva, Erez (ext) (DI PA CI R&D 3) Sent: Thursda

Re: [Linuxptp-devel] Adding libpmc

2020-04-16 Thread Jiri Benc
Hi Erez, On Thu, 16 Apr 2020 14:18:25 +, Geva, Erez wrote: > I see that linux PTP is under GPL 2. > > I would like to ask your permission to allow using a libpmc library > and headers needed by it under LGPL 2. Could I ask you to provide more context, please? I contributed to the Linux PTP

Re: [Linuxptp-devel] Adding libpmc

2020-04-16 Thread Richard Cochran
On Thu, Apr 16, 2020 at 02:18:25PM +, Geva, Erez wrote: > I see that linux PTP is under GPL 2. > > I would like to ask your permission to allow using a libpmc library and > headers needed by it under LGPL 2. As one of the copyright holders, I do not agree to any change of license. Thanks, R

Re: [Linuxptp-devel] Adding libpmc

2020-04-16 Thread Geva, Erez
My logic is the same one you find in Linux kernel and in other GNU projects. While the Kernel is under GPL 2. The headers and system call are under exception, so user can use the Kernel with non GPL code. But any changes or addition to the kernel itself should be GPL 2. The exception means that

Re: [Linuxptp-devel] Adding libpmc

2020-04-16 Thread Jiri Benc
On Thu, 16 Apr 2020 17:06:46 +, Geva, Erez wrote: > While the Kernel is under GPL 2. > The headers and system call are under exception, so user can use the > Kernel with non GPL code. But any changes or addition to the kernel > itself should be GPL 2. This is very different. The Linux kernel i

Re: [Linuxptp-devel] Adding libpmc

2020-04-16 Thread Geva, Erez
> > While the Kernel is under GPL 2. > > The headers and system call are under exception, so user can use the > > Kernel with non GPL code. But any changes or addition to the kernel > > itself should be GPL 2. > > This is very different. The Linux kernel is supposed to run any kind of > programs u

Re: [Linuxptp-devel] Adding libpmc

2020-04-16 Thread Richard Cochran
On Thu, Apr 16, 2020 at 05:06:46PM +, Geva, Erez wrote: > Do you have another suggestion? >From a technical POV, I think that the pmc_common.c file does not provide you very much at all. It does not, IMHO, rise to the level of substance for a real shared library. So the very idea of libpmc s

[Linuxptp-devel] [RFC PATCH 1/3] phc: Add helper apis to control external timestamps on ptp device

2020-04-16 Thread Lokesh Vutla via Linuxptp-devel
Add helper apis to: - Enable external timestamps - Disable external timestamps - Read external timestamps Signed-off-by: Lokesh Vutla --- phc.c | 48 phc.h | 29 + 2 files changed, 77 insertions(+) diff --git a/phc.c b

[Linuxptp-devel] [RFC PATCH 2/3] pwm: Add helper apis to control pwm

2020-04-16 Thread Lokesh Vutla via Linuxptp-devel
Add pwm helper api calls to control PWM using /sys/class entries. Following apis are supported: - pwm_chan_enable - pwm_chan_disable - pwm_chan_set_period - pwm_chan_set_duty_cycle - pwm_chan_create Signed-off-by: Lokesh Vutla --- makefile | 2 +- pwm.c| 223 +++

[Linuxptp-devel] [RFC PATCH 3/3] phc2pwm: Introduce an utility to sync pwm with PTP clock

2020-04-16 Thread Lokesh Vutla via Linuxptp-devel
Phc2pwm is an utility program to synchronize a pwm with ptp clock to generate PPS. This is mainly intended for the below hardware configuration: - A PTP supporting IP that is not capable of generating PPS signal - A PWM signal that is connected to the above PTP hardware - On every rising edge of PW

[Linuxptp-devel] [RFC PATCH 0/3] Introduce an utility to sync pwm with PTP clock

2020-04-16 Thread Lokesh Vutla via Linuxptp-devel
This series adds support for an userpace utility to sync a pwm with PTP clock. This can be used only on a specific hardware configutaion: - A PTP supporting IP that is not capable of generating PPS signal - A PWM signal that is connected to the above PTP hardware - On every rising edge of PWM, PTP