net/mlx5: Query maximum frequency adjustment of the PTP hardware clock
authorRahul Rameshbabu <rrameshbabu@nvidia.com>
Thu, 30 Mar 2023 22:05:38 +0000 (15:05 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 15 Nov 2023 19:34:31 +0000 (11:34 -0800)
commit4aea6a6d61cd6e3df9ed98345638abad1b1e5276
tree64d370a80132f85736855e09ce577046f663d1f2
parent78c1b26754d9df062c3c8e08f5d6427967e3ba4b
net/mlx5: Query maximum frequency adjustment of the PTP hardware clock

Some mlx5 devices do not support the default advertised maximum frequency
adjustment value for the PTP hardware clock that is set by the driver.
These devices need to be queried when initializing the clock functionality
in order to get the maximum supported frequency adjustment value. This
value can be greater than the minimum supported frequency adjustment across
mlx5 devices (50 million ppb).

Signed-off-by: Rahul Rameshbabu <rrameshbabu@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
include/linux/mlx5/mlx5_ifc.h