Re: [PATCH net v1] ptp: Make max_phase_adjustment sysfs device attribute invisible when not supported
From: Richard Cochran <richardcochran@gmail.com>
Date: 2023-06-30 03:33:03
Also in:
ltp
From: Richard Cochran <richardcochran@gmail.com>
Date: 2023-06-30 03:33:03
Also in:
ltp
On Tue, Jun 27, 2023 at 04:21:39PM -0700, Rahul Rameshbabu wrote:
The .adjphase operation is an operation that is implemented only by certain
PHCs. The sysfs device attribute node for querying the maximum phase
adjustment supported should not be exposed on devices that do not support
.adjphase.
Fixes: c3b60ab7a4df ("ptp: Add .getmaxphase callback to ptp_clock_info")
Signed-off-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Reported-by: Nathan Chancellor <nathan@kernel.org>
Reported-by: Naresh Kamboju <redacted>
Reported-by: Linux Kernel Functional Testing <redacted>
Link: https://lore.kernel.org/netdev/20230627162146.GA114473@dev-arch.thelio-3990X/ (local)
Link: https://lore.kernel.org/all/CA+G9fYtKCZeAUTtwe69iK8Xcz1mOKQzwcy49wd+imZrfj6ifXA@mail.gmail.com/ (local)Acked-by: Richard Cochran <richardcochran@gmail.com>