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:
committed by
David S. Miller
parent
1b8caefaf4
commit
6b3a63100d
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user