Enables advertisement of the maximum offset supported by the phase control functionality of PHCs. The callback is used to return an error if an offset not supported by the PHC is used in ADJ_OFFSET. The ioctls PTP_CLOCK_GETCAPS and PTP_CLOCK_GETCAPS2 now advertise the maximum offset a PHC's phase control functionality is capable of supporting. Introduce new sysfs node, max_phase_adjustment.
Showing the changes to include/uapi (1 of 6 files). Show all
Unified · Split
| @@ -95,7 +95,8 @@ struct ptp_clock_caps { · 94 unmodified lines | |||
| 95 | int cross_timestamping; | 95 | int cross_timestamping; |
| 96 | /* Whether the clock supports adjust phase */ | 96 | /* Whether the clock supports adjust phase */ |
| 97 | int adjust_phase; | 97 | int adjust_phase; |
| 98 | int rsv[12]; /* Reserved for future use. */ | 98 | int max_phase_adj; /* Maximum phase adjustment in nanoseconds. */ |
| 99 | int rsv[11]; /* Reserved for future use. */ | ||
| 99 | }; | 100 | }; |
| 100 | 101 | ||
| 101 | struct ptp_extts_request { | 102 | struct ptp_extts_request { |