diff options
author | Vincent Cheng <vincent.cheng.xh@renesas.com> | 2020-05-01 23:35:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-02 16:31:45 -0700 |
commit | d3f1cbd29fa63f1bb608603a6cd54ca7af56a68b (patch) | |
tree | c8fa140f0d9e04e6f045ff5831a8a060295c981d /include | |
parent | 184ecc9eb260d5a3bcdddc5bebd18f285ac004e9 (diff) | |
download | linux-d3f1cbd29fa63f1bb608603a6cd54ca7af56a68b.tar.bz2 |
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 'include')
-rw-r--r-- | include/uapi/linux/ptp_clock.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/uapi/linux/ptp_clock.h b/include/uapi/linux/ptp_clock.h index 9dc9d0079e98..ff070aa64278 100644 --- a/include/uapi/linux/ptp_clock.h +++ b/include/uapi/linux/ptp_clock.h @@ -89,7 +89,9 @@ struct ptp_clock_caps { int n_pins; /* Number of input/output pins. */ /* Whether the clock supports precise system-device cross timestamps */ int cross_timestamping; - int rsv[13]; /* Reserved for future use. */ + /* Whether the clock supports adjust phase */ + int adjust_phase; + int rsv[12]; /* Reserved for future use. */ }; struct ptp_extts_request { |