diff options
author | Jacob Keller <jacob.e.keller@intel.com> | 2022-10-28 04:04:16 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-10-31 11:14:16 +0000 |
commit | d8aad3f3694f1170fb4ea8030e3d8a27324e81d2 (patch) | |
tree | 21f059c1f89a50eff4f552c50565d1ac7291e667 /drivers/net/ethernet/microchip/lan743x_ptp.c | |
parent | ptp: mlx4: convert to .adjfine and adjust_by_scaled_ppm (diff) | |
download | wireguard-linux-d8aad3f3694f1170fb4ea8030e3d8a27324e81d2.tar.xz wireguard-linux-d8aad3f3694f1170fb4ea8030e3d8a27324e81d2.zip |
ptp: mlx5: convert to .adjfine and adjust_by_scaled_ppm
The mlx5 implementation of .adjfreq is implemented in terms of a
straight forward "base * ppb / 1 billion" calculation.
Convert this to the .adjfine interface and use adjust_by_scaled_ppm for the
calculation of the new mult value.
Note that the mlx5_ptp_adjfreq_real_time function expects input in terms of
ppb, so use the scaled_ppm_to_ppb to convert before passing to this
function.
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Shirly Ohnona <shirlyo@nvidia.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Cc: Gal Pressman <gal@nvidia.com>
Cc: Saeed Mahameed <saeedm@nvidia.com>
Cc: Leon Romanovsky <leon@kernel.org>
Cc: Aya Levin <ayal@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions