Re: [Linuxptp-devel] [PATCH V2 4/6] Add definitions for PTP pin ioctls for backwards kernel compatibility.

2020-03-21 Thread Richard Cochran
On Wed, Mar 11, 2020 at 03:40:42PM -0700, Jacob Keller wrote: > I'm used to seeing this done like > > #ifndef PTP_PIN_SETFUNC > > struct compat_ptp_clock_caps { > } > > #define ptp_clock_caps compat_ptp_clock_caps > > #endif > > so that the other code doesn't need to change, as the ptp_clock_c

Re: [Linuxptp-devel] [PATCH V2 4/6] Add definitions for PTP pin ioctls for backwards kernel compatibility.

2020-03-11 Thread Jacob Keller
On 3/11/2020 11:24 AM, Richard Cochran wrote: > Upcoming functionality will need to configure the input and output pins of > PHC devices. However, this requires fairly recent kernel support. This > patch adds the needed definitions for compiling with older kernel headers. > > In addition, kernel

[Linuxptp-devel] [PATCH V2 4/6] Add definitions for PTP pin ioctls for backwards kernel compatibility.

2020-03-11 Thread Richard Cochran
Upcoming functionality will need to configure the input and output pins of PHC devices. However, this requires fairly recent kernel support. This patch adds the needed definitions for compiling with older kernel headers. In addition, kernel v5.4 introduced a second set of ioctls for the ancillar