History

ptp: Add .getmaxphase callback to ptp_clock_info

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.

Rahul Rameshbabu committed 3 years ago

Commit c3b60ab1 parent 3a9a9a66 files · +31 −4Browse files

Showing the changes to include/uapi (1 of 6 files). Show all

Unified · Split

include/uapi/linux/ptp_clock.h+2−1
@@ -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
101struct ptp_extts_request {102struct ptp_extts_request {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t