diff options
author | Radu Pirea (NXP OSS) <radu-nicolae.pirea@oss.nxp.com> | 2021-04-20 16:11:33 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-04-20 16:58:46 -0700 |
commit | 6b3a63100dedfa1f0887eb316110d5d7b0c51ed4 (patch) | |
tree | f068db2d4f8a2f06eacfd2f57165e0719b2b54b2 /drivers/net | |
parent | 1b8caefaf4f063fdc43e4078384d38ce96147b35 (diff) | |
download | lwn-6b3a63100dedfa1f0887eb316110d5d7b0c51ed4.tar.gz lwn-6b3a63100dedfa1f0887eb316110d5d7b0c51ed4.zip |
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/phy/nxp-c45-tja11xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/nxp-c45-tja11xx.c b/drivers/net/phy/nxp-c45-tja11xx.c index 47cacda8836f..95307097ebff 100644 --- a/drivers/net/phy/nxp-c45-tja11xx.c +++ b/drivers/net/phy/nxp-c45-tja11xx.c @@ -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); } |