summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/ptp
diff options
context:
space:
mode:
authorVincent Cheng <vincent.cheng.xh@renesas.com>2020-05-02 06:35:37 +0300
committerDavid S. Miller <davem@davemloft.net>2020-05-03 02:31:45 +0300
commitd3f1cbd29fa63f1bb608603a6cd54ca7af56a68b (patch)
treec8fa140f0d9e04e6f045ff5831a8a060295c981d /tools/testing/selftests/ptp
parent184ecc9eb260d5a3bcdddc5bebd18f285ac004e9 (diff)
downloadlinux-d3f1cbd29fa63f1bb608603a6cd54ca7af56a68b.tar.xz
ptp: Add adjust_phase to ptp_clock_caps capability.
Add adjust_phase to ptp_clock_caps capability to allow user to query if a PHC driver supports adjust phase with ioctl PTP_CLOCK_GETCAPS command. Signed-off-by: Vincent Cheng <vincent.cheng.xh@renesas.com> Reviewed-by: Richard Cochran <richardcochran@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/ptp')
-rw-r--r--tools/testing/selftests/ptp/testptp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/testing/selftests/ptp/testptp.c b/tools/testing/selftests/ptp/testptp.c
index c0dd10257df5..da7a9dda9490 100644
--- a/tools/testing/selftests/ptp/testptp.c
+++ b/tools/testing/selftests/ptp/testptp.c
@@ -269,14 +269,16 @@ int main(int argc, char *argv[])
" %d programmable periodic signals\n"
" %d pulse per second\n"
" %d programmable pins\n"
- " %d cross timestamping\n",
+ " %d cross timestamping\n"
+ " %d adjust_phase\n",
caps.max_adj,
caps.n_alarm,
caps.n_ext_ts,
caps.n_per_out,
caps.pps,
caps.n_pins,
- caps.cross_timestamping);
+ caps.cross_timestamping,
+ caps.adjust_phase);
}
}