Re: [PATCH net-next v2 5/9] ptp: Add .getmaxphase callback to ptp_clock_info
From: Richard Cochran <richardcochran@gmail.com>
Date: 2023-05-24 03:44:07
From: Richard Cochran <richardcochran@gmail.com>
Date: 2023-05-24 03:44:07
On Tue, May 23, 2023 at 01:54:36PM -0700, Rahul Rameshbabu wrote:
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. Cc: Jakub Kicinski <kuba@kernel.org> Cc: Shuah Khan <shuah@kernel.org> Cc: Richard Cochran <richardcochran@gmail.com> Cc: Maciek Machnikowski <redacted> Signed-off-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>