The capability command for phc_ctl does not display the number of pins or the cross timestamping support. Add this as output so that the user can see the complete device capabilities.
Signed-off-by: Jacob Keller <jacob.e.kel...@intel.com> --- phc_ctl.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/phc_ctl.c b/phc_ctl.c index 91913426ec1b..00d7a1cd68a4 100644 --- a/phc_ctl.c +++ b/phc_ctl.c @@ -320,12 +320,16 @@ static int do_caps(clockid_t clkid, int cmdc, char *cmdv[]) " %d programable alarms\n" " %d external time stamp channels\n" " %d programmable periodic signals\n" - " %s pulse per second support", + " %d configurable input/output pins\n" + " %s pulse per second support\n" + " %s cross timestamping support\n", caps.max_adj, caps.n_alarm, caps.n_ext_ts, caps.n_per_out, - caps.pps ? "has" : "doesn't have"); + caps.n_pins, + caps.pps ? "has" : "doesn't have", + caps.cross_timestamping ? "has" : "doesn't have"); return 0; } base-commit: 3da961bb112b4d0e823ff125901b5674e7b57c0e -- 2.28.0.163.g6104cc2f0b60 _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel