Skip to content
Commit 89f9c880 authored by Karol Kolacinski's avatar Karol Kolacinski Committed by Greg Kroah-Hartman
Browse files

ice: Use div64_u64 instead of div_u64 in adjfine

[ Upstream commit 0013881c ]

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: 06c16d89

 ("ice: register 1588 PTP clock device object for E810 devices")
Signed-off-by: default avatarKarol Kolacinski <karol.kolacinski@intel.com>
Tested-by: default avatarGurucharan G <gurucharanx.g@intel.com>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 68014890
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment