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 e55af593471a..5a01e9d69b0f 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;
 }
 
-- 
2.23.0.245.gf157bbb9169d



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

Reply via email to