diff options
author | David S. Miller <davem@davemloft.net> | 2022-11-11 13:58:39 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-11-11 13:58:39 +0300 |
commit | 2cf7e87fc4592bcbed77448ebba68c2925f2a2af (patch) | |
tree | 0028747146e7a08b2dd6e72f195f0d7373cb1326 /lib/test_bpf.c | |
parent | 3b738db50f9e5c15c161408c3f7a0c86225aecef (diff) | |
parent | 75ab70ec5cefade915a999886e4863fe6a38f8b5 (diff) | |
download | linux-2cf7e87fc4592bcbed77448ebba68c2925f2a2af.tar.xz |
Merge branch 'ptp-adjfreq-copnvert'
Jacob Keller says:
====================
ptp: convert remaining users of .adjfreq
A handful of drivers remain which still use the .adjfreq interface instead
of the newer .adjfine interface. The new interface is preferred as it has a
more precise adjustment using scaled parts per million.
A handful of the remaining drivers are implemented with a common pattern
that can be refactored to use the adjust_by_scaled_ppm and
diff_by_scaled_ppm helper functions. These include the ptp_phc, ptp_ixp64x,
tg3, hclge, stmac, cpts and bnxt drivers. These are each refactored in a
separate change.
The remaining drivers, bnx2x, liquidio, cxgb4, fec, and qede implement
.adjfreq in a way different from the normal pattern expected by
adjust_by_scaled_ppm. Fixing these drivers to properly use .adjfine requires
specific knowledge of the hardware implementation. Instead I simply refactor
them to use .adjfine and convert scaled_ppm into ppb using the
scaled_ppm_to_ppb function.
Finally, the .adjfreq implementation interface is removed entirely. This
simplifies the interface and ensures that new drivers must implement the new
interface as they no longer have an alternative.
This still leaves parts per billion used as part of the max_adj interface,
and the core PTP stack still converts scaled_ppm to ppb to check this. I
plan to investigate fixing this in the future.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/test_bpf.c')
0 files changed, 0 insertions, 0 deletions