Re: [PATCH v6 0/8] ptp: IEEE 1588 hardware clock support

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Richard Cochran
Date: Monday, September 27, 2010 - 11:47 pm

On Mon, Sep 27, 2010 at 06:05:58PM +0100, Alan Cox wrote:

Yes, and the whole point of introducing a PTP hardare clock API was to
avoid each new clock driver introducing yet another ioctl interface.

I had proposed a standard ioctl interface for PTP hardware clocks, but
that interface was rightly criticized for duplicating the posix clock
API. It does not make sense to have multiple interfaces with the exact
same functionality.

It is impossible to support every last feature of every possible
hardware clock with a generic interface, so there will always need to
be special ioctls for such features.

However, some clock functions *are* completely generic and apply to
every clock:

- set time
- get time
- adjust the frequency by N ppb
- shift the time by a given offset

The first two are provided by the posix clock interface, the third by
the NTP adjtimex call, which also can support (by a single mode
extension) the last item.

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

Messages in current thread:
[PATCH v6 0/8] ptp: IEEE 1588 hardware clock support, Richard Cochran, (Thu Sep 23, 10:30 am)
[PATCH 2/8] posix clocks: dynamic clock ids., Richard Cochran, (Thu Sep 23, 10:31 am)
[PATCH 3/8] posix clocks: introduce a sysfs presence., Richard Cochran, (Thu Sep 23, 10:31 am)
Re: [PATCH v6 0/8] ptp: IEEE 1588 hardware clock support, Christoph Lameter, (Thu Sep 23, 10:53 am)
Re: [PATCH v6 0/8] ptp: IEEE 1588 hardware clock support, Christoph Lameter, (Thu Sep 23, 11:36 am)
Re: [PATCH v6 0/8] ptp: IEEE 1588 hardware clock support, Christoph Lameter, (Thu Sep 23, 12:15 pm)
Re: [PATCH 6/8] ptp: Added a clock that uses the eTSEC fou ..., Christoph Lameter, (Thu Sep 23, 12:17 pm)
Re: [PATCH 6/8] ptp: Added a clock that uses the eTSEC fou ..., Christoph Lameter, (Thu Sep 23, 1:32 pm)
Re: [PATCH v6 0/8] ptp: IEEE 1588 hardware clock support, Christoph Lameter, (Thu Sep 23, 1:49 pm)
Re: [PATCH v6 0/8] ptp: IEEE 1588 hardware clock support, Christian Riesch, (Thu Sep 23, 2:34 pm)
Re: [PATCH 1/8] posix clocks: introduce a syscall for cloc ..., Benjamin Herrenschmidt, (Thu Sep 23, 6:20 pm)
Re: [PATCH v6 0/8] ptp: IEEE 1588 hardware clock support, Richard Cochran, (Fri Sep 24, 1:33 am)
Re: [PATCH v6 0/8] ptp: IEEE 1588 hardware clock support, Richard Cochran, (Fri Sep 24, 6:14 am)
Re: [PATCH v6 0/8] ptp: IEEE 1588 hardware clock support, Richard Cochran, (Fri Sep 24, 6:50 am)
Re: [PATCH 1/8] posix clocks: introduce a syscall for cloc ..., Benjamin Herrenschmidt, (Fri Sep 24, 3:12 pm)
Re: [PATCH v6 0/8] ptp: IEEE 1588 hardware clock support, Christoph Lameter, (Mon Sep 27, 8:37 am)
Re: [PATCH v6 0/8] ptp: IEEE 1588 hardware clock support, Christoph Lameter, (Mon Sep 27, 8:52 am)
Re: [PATCH v6 0/8] ptp: IEEE 1588 hardware clock support, Christoph Lameter, (Mon Sep 27, 8:56 am)
Re: [PATCH v6 0/8] ptp: IEEE 1588 hardware clock support, M. Warner Losh, (Mon Sep 27, 9:14 am)
Re: [PATCH v6 0/8] ptp: IEEE 1588 hardware clock support, Richard Cochran, (Mon Sep 27, 11:34 pm)
Re: [PATCH v6 0/8] ptp: IEEE 1588 hardware clock support, Richard Cochran, (Mon Sep 27, 11:47 pm)
Re: [PATCH v6 0/8] ptp: IEEE 1588 hardware clock support, Christian Riesch, (Wed Sep 29, 8:50 pm)