Re: [RFC PATCH v12 09/11] ptp: extend input argument for getcrosstimestamp API

From
Richard Cochran <richardcochran@gmail.com>
Date
2020-05-24 01:42:27
Also in
kvm, kvmarm, linux-arm-kernel, lkml
Reply to
Jianyong Wu, 2020-05-22
On Fri, May 22, 2020 at 04:37:22PM +0800, Jianyong Wu wrote:
sometimes we may need tell getcrosstimestamp call back how to perform
itself. Extending input arguments for getcrosstimestamp API to offer more
exquisite control for the operation.
This text does not offer any justification for the change in API.
 
quoted hunk ↗ jump to hunk
diff --git a/include/linux/ptp_clock_kernel.h b/include/linux/ptp_clock_kernel.h
index c602670bbffb..ba765647e54b 100644
--- a/include/linux/ptp_clock_kernel.h
+++ b/include/linux/ptp_clock_kernel.h
@@ -133,7 +133,8 @@ struct ptp_clock_info {
 	int (*gettimex64)(struct ptp_clock_info *ptp, struct timespec64 *ts,
 			  struct ptp_system_timestamp *sts);
 	int (*getcrosststamp)(struct ptp_clock_info *ptp,
-			      struct system_device_crosststamp *cts);
+			      struct system_device_crosststamp *cts,
+			      long *flag);
Well, you ignored the kernel doc completely.  But in any case, I must
NAK this completely opaque and mysterious change.  You want to add a
random pointer to some flag?  I don't think so.

Thanks,
Richard

Thread (31 messages) 31 messages, 6 authors, last reply 2020-05-29
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help