Re: [PATCHv2 next 2/3] ptp: add ioctl interface for ptp_gettimex64any()

From: Mahesh Bandewar (महेश बंडेवार)
Date: Thu Oct 05 2023 - 19:13:01 EST


On Tue, Oct 3, 2023 at 9:30 PM Richard Cochran <richardcochran@xxxxxxxxx> wrote:
>
> On Mon, Oct 02, 2023 at 09:17:04PM -0700, Mahesh Bandewar wrote:
> > add an ioctl op PTP_SYS_OFFSET_ANY2 to support ptp_gettimex64any() method
>
> NAK.
>
Could you elaborate?

> > + case PTP_SYS_OFFSET_ANY2:
>
> 2?
>
> What happended to 1?

My reading from the commit 415606588c61 ("PTP: introduce new versions
of IOCTLs") is that we have an issue with the version 1 and hence we
added ver 2 of the existing ops. Since it's a new implementation, I
can skip the old part and just implement ver 2.
However, I can do something like
#define PTP_SYS_OFFSET_ANY PTP_OFFSET_ANY2
is that something inline with the mix of ver 1 and ver 2 expectation?