Extend phc_ctl with a new get_pins_cfg command which calls the PTP_PIN_GETFUNC ioctl on a PHC clock and prints the pin configuration for each pin.
Changes since v3: * remove use of PTP_PIN_SETFUNC2 and PTP_PIN_GETFUNC2 at Erez's request * avoid converting PTP_PF_NONE in pin_func_string() * check clkid >= 0 instead of clkid == CLOCK_REALTIME * add a patch to do the same clkid check in do_caps() Jacob Keller (4): phc: always use PTP_PIN_SETFUNC instead of depending on kernel headers phc_ctl: use phc_get_caps instead of direct ioctl invocation phc_ctl: check clkid >= 0 instead of just CLOCK_REALTIME phc_ctl: add get_pins_cfg command to display pin functions missing.h | 12 +++++---- phc.c | 19 +++++++++------ phc.h | 24 ++++++++++++++++++ phc_ctl.c | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++--- 4 files changed, 112 insertions(+), 16 deletions(-) -- 2.41.0.1.g9857a21e0017.dirty _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel