Miroslav Lichvar
2013-01-29 17:06:15 UTC
This patchset adds a PTP management client to phc2sys to allow waiting
on ptp4l before setting the system clock and also to set automatically
the synchronization offset. It moves some code which can be shared
with pmc to pmc_common.c. I'm not very sure with the file name and if
it wouldn't be better to have it in pmc.c and pmc.c rename to pmc_?.c.
BTW, the port state enum includes a PS_GRAND_MASTER state, which I
couldn't find in the 1588 spec. Isn't that an incompatibility with
other PTP management clients?
Miroslav Lichvar (3):
Set program name for print().
Move some pmc code to separate file.
phc2sys: include PTP management client.
makefile | 8 ++-
phc2sys.8 | 14 ++++-
phc2sys.c | 147 +++++++++++++++++++++++++++++++++++++++++++++-
pmc.c | 130 ++++++-----------------------------------
pmc_common.c | 186 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
pmc_common.h | 40 +++++++++++++
print.c | 9 ++-
print.h | 1 +
ptp4l.c | 1 +
9 files changed, 417 insertions(+), 119 deletions(-)
create mode 100644 pmc_common.c
create mode 100644 pmc_common.h
on ptp4l before setting the system clock and also to set automatically
the synchronization offset. It moves some code which can be shared
with pmc to pmc_common.c. I'm not very sure with the file name and if
it wouldn't be better to have it in pmc.c and pmc.c rename to pmc_?.c.
BTW, the port state enum includes a PS_GRAND_MASTER state, which I
couldn't find in the 1588 spec. Isn't that an incompatibility with
other PTP management clients?
Miroslav Lichvar (3):
Set program name for print().
Move some pmc code to separate file.
phc2sys: include PTP management client.
makefile | 8 ++-
phc2sys.8 | 14 ++++-
phc2sys.c | 147 +++++++++++++++++++++++++++++++++++++++++++++-
pmc.c | 130 ++++++-----------------------------------
pmc_common.c | 186 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
pmc_common.h | 40 +++++++++++++
print.c | 9 ++-
print.h | 1 +
ptp4l.c | 1 +
9 files changed, 417 insertions(+), 119 deletions(-)
create mode 100644 pmc_common.c
create mode 100644 pmc_common.h
--
1.7.11.7
1.7.11.7