[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150319074816.GA4568@localhost.localdomain>
Date: Thu, 19 Mar 2015 08:48:16 +0100
From: Richard Cochran <richardcochran@...il.com>
To: Baolin Wang <baolin.wang@...aro.org>
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
john.stultz@...aro.com, tglx@...utronix.de, arnd@...aro.org
Subject: Re: [PATCH 1/4] ptp/chardev:Introduce another option to get/set time
in ptp_clock_info structure
On Thu, Mar 19, 2015 at 01:45:06PM +0800, Baolin Wang wrote:
> diff --git a/include/linux/ptp_clock_kernel.h b/include/linux/ptp_clock_kernel.h
> index 0d8ff3f..86decc2 100644
> --- a/include/linux/ptp_clock_kernel.h
> +++ b/include/linux/ptp_clock_kernel.h
> @@ -105,7 +105,9 @@ struct ptp_clock_info {
> int (*adjfreq)(struct ptp_clock_info *ptp, s32 delta);
> int (*adjtime)(struct ptp_clock_info *ptp, s64 delta);
> int (*gettime)(struct ptp_clock_info *ptp, struct timespec *ts);
> + int (*getktime)(struct ptp_clock_info *ptp, ktime_t *kt);
> int (*settime)(struct ptp_clock_info *ptp, const struct timespec *ts);
> + int (*setktime)(struct ptp_clock_info *ptp, ktime_t kt);
You have added alternate methods that do exactly the same thing as
gettime/settime. Then, you convert just two drivers over to the new
interface.
I don't want to have this job half done, with some driver being
forgotten along the way. Please, just change the signatures of
gettime/settime and convert *all* of the drivers. After all, there
are not that many drivers to convert.
Thanks,
Richard
> int (*enable)(struct ptp_clock_info *ptp,
> struct ptp_clock_request *request, int on);
> int (*verify)(struct ptp_clock_info *ptp, unsigned int pin,
> --
> 1.7.9.5
>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists