]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/mlx5: Add adjphase function to support hardware-only offset control
authorRahul Rameshbabu <rrameshbabu@nvidia.com>
Wed, 12 Oct 2022 00:28:10 +0000 (17:28 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 18 Jan 2023 18:34:07 +0000 (10:34 -0800)
commit8e11a68e2e8abf6510508b75b49ec5953ca262b6
treeaef169b1b407519ba16744b455f73fa68cae09d7
parentd0f332dc96894d4652a1d10e9de35ded267901a7
net/mlx5: Add adjphase function to support hardware-only offset control

The adjtime function supports using hardware to set the clock offset when
the delta was supported by the hardware. When the delta is not supported by
the hardware, the driver handles adjusting the clock. The newly-introduced
adjphase function is similar to the adjtime function, except it guarantees
that a provided clock offset will be used directly by the hardware to
adjust the PTP clock. When the range is not acceptable by the hardware, an
error is returned.

Signed-off-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Reviewed-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c