diff options
author | Jacob Keller <jacob.e.keller@intel.com> | 2022-11-09 15:09:43 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-11-11 10:58:39 +0000 |
commit | a29c132f92ed5af6e7116966b7e9899d4c22783c (patch) | |
tree | e172417a021d91b388a8e1a459ae2cb6b3a389d7 /drivers/ptp | |
parent | a45392071ceeebe85622705a1d7500ed434785a7 (diff) |
ptp: bnxt: convert .adjfreq to .adjfine
When the BNXT_FW_CAP_PTP_RTC flag is not set, the bnxt driver implements
.adjfreq on a cyclecounter in terms of the straightforward "base * ppb / 1
billion" calculation. When BNXT_FW_CAP_PTP_RTC is set, the driver forwards
the ppb value to firmware for configuration.
Convert the driver to the newer .adjfine interface, updating the
cyclecounter calculation to use adjust_by_scaled_ppm to perform the
calculation. Use scaled_ppm_to_ppb when forwarding the correction to
firmware.
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Cc: Michael Chan <michael.chan@broadcom.com>
Cc: Richard Cochran <richardcochran@gmail.com>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ptp')
0 files changed, 0 insertions, 0 deletions