summaryrefslogtreecommitdiff
path: root/net/dsa
diff options
context:
space:
mode:
authorCarolina Jubran <cjubran@nvidia.com>2025-10-29 10:38:13 +0200
committerJakub Kicinski <kuba@kernel.org>2025-10-31 16:27:40 -0700
commit5a89b27afd3d010680f9355f7ff5b048cfe89333 (patch)
tree7c0540c9e37876490fb59991650ce71473900faf /net/dsa
parent01534d73c58b3d03ae487836958fa8cb25fb77bb (diff)
ptp: Allow exposing cycles only for clocks with free-running counter
The PTP core falls back to gettimex64 and getcrosststamp when getcycles64 or getcyclesx64 are not implemented. This causes the CYCLES ioctls to retrieve PHC real time instead of free-running cycles. Reject PTP_SYS_OFFSET_{PRECISE,EXTENDED}_CYCLES for clocks without free-running counter support since the result would represent PHC real time and system time rather than cycles and system time. Fixes: faf23f54d366 ("ptp: Add ioctl commands to expose raw cycle counter values") Signed-off-by: Carolina Jubran <cjubran@nvidia.com> Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com> Reviewed-by: Tariq Toukan <tariqt@nvidia.com> Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com> Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev> Link: https://patch.msgid.link/20251029083813.2276997-1-cjubran@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/dsa')
0 files changed, 0 insertions, 0 deletions