diff options
author | Karol Kolacinski <karol.kolacinski@intel.com> | 2021-11-04 14:52:11 +0100 |
---|---|---|
committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2021-12-14 11:29:34 -0800 |
commit | 0013881c1145d36bf26165bb70fdd7560a5507a3 (patch) | |
tree | 460d107a42b4f5626c81c1425ff351f382adc999 /drivers/net/ethernet/intel/ice/ice_ptp.h | |
parent | 3dd7d40b43663f58d11ee7a3d3798813b26a48f1 (diff) | |
download | linux-0013881c1145d36bf26165bb70fdd7560a5507a3.tar.bz2 |
ice: Use div64_u64 instead of div_u64 in adjfine
Change the division in ice_ptp_adjfine from div_u64 to div64_u64.
div_u64 is used when the divisor is 32 bit but in this case incval is
64 bit and it caused incorrect calculations and incval adjustments.
Fixes: 06c16d89d2cb ("ice: register 1588 PTP clock device object for E810 devices")
Signed-off-by: Karol Kolacinski <karol.kolacinski@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_ptp.h')
0 files changed, 0 insertions, 0 deletions