phy: nxp-c45-tja11xx: fix phase offset calculation

Fix phase offset calculation.

Signed-off-by: Radu Pirea (NXP OSS) <radu-nicolae.pirea@oss.nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Radu Pirea (NXP OSS)
2021-04-20 16:11:33 +03:00
committed by David S. Miller
parent 1b8caefaf4
commit 6b3a63100d
+1 -1
View File
@@ -354,7 +354,7 @@ static u64 nxp_c45_get_phase_shift(u64 phase_offset_raw)
* and get 1 decimal point precision.
*/
phase_offset_raw *= 10;
phase_offset_raw -= phase_offset_raw;
phase_offset_raw -= 738;
return div_u64(phase_offset_raw, 9);
}