> So my questions:
> - is the one-shot alarm functionality of the PHC actually implemented in any 
> driver?

No.

> - how can I implement this in the freescale FEC driver without
>   having to modify the kernel? (ptp_clock_kernel.h and
>   drivers/ptp/ptp_clock.c)

You can't implement this without changing the kernel.
 
> Hopefully I’m missing something and there is a simple way to get the
> alarm functionality working.

Unfortunately, you understood the kernel sources well enough.  There
is a non-trivial amount of work to implement the timer in the PHC core
code.  I decided some time ago that the possible benefit is not worth
the effort required.  I would say most use cases can be adequately
covered by:

1. using a PREEMPT_RT kernel
2. synchronizing the system time from the PHC using phc2sys
3. programming a normal high resolution timer using CLOCK_MONOTONIC or
   CLOCK_REALTIME.

Sorry,
Richard

------------------------------------------------------------------------------
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to