Re: [PATCH 1/5] ptp: Added a brand new class driver for ptp clocks.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alan Cox
Date: Friday, August 27, 2010 - 7:50 am

> To tell the truth, my original motivation for the patch set was to

ptp *clocks*


For a new syscall you could equally make it

	(clockid_t id, void *args)


If you only have one clock that you are calling 'the PTP clock' - but is
that a good assumption ?

I agree with your fundamental arguments as I understand them

- That it's another clock or clocks possibly not synchronized with the
  system clock

- That there should be a sensible API for doing slews and steps on other
  clocks but the systen clock.

I'm concerned about the assumption that there is a single magic PTP
clock, and calling it a PTP clock for two reasons

- There can be more than one

- PTP is just a protocol, in five years time it might be TICTOC or
  something newer and more wonderous, in some environments it'll be a
  synchronous distributed clock generation not PTP etc. Wiring PTP or
  IEE1588v2 into the clock name doesn't make sense.

I'd be happier with a model which says we have some arbitary number of
synchronization sources which may or may not have a connection to system
time, and may be using all sorts of synchronization methods. Clock in
fact seems almost a misnomer.

Alan


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH v5 0/5] ptp: IEEE 1588 clock support, Richard Cochran, (Mon Aug 16, 4:17 am)
[PATCH 4/5] ptp: Added a clock driver for the IXP46x., Richard Cochran, (Mon Aug 16, 4:18 am)
Re: [PATCH 1/5] ptp: Added a brand new class driver for pt ..., Alan Cox, (Fri Aug 27, 7:50 am)
Re: [PATCH 1/5] ptp: Added a brand new class driver for pt ..., Patrick Loschmidt, (Fri Aug 27, 8:21 am)