Commit 6b3a6310 authored by Radu Pirea (NXP OSS)'s avatar Radu Pirea (NXP OSS) Committed by David S. Miller

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

Fix phase offset calculation.
Signed-off-by: default avatarRadu Pirea (NXP OSS) <radu-nicolae.pirea@oss.nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1b8caefa
......@@ -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);
}
......
Markdown is supported
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