phy: nxp-c45-tja11xx: fix phase offset calculation
diff mbox series

Message ID 20210420131133.370259-1-radu-nicolae.pirea@oss.nxp.com
State Accepted
Commit 6b3a63100dedfa1f0887eb316110d5d7b0c51ed4
Headers show
Series
  • phy: nxp-c45-tja11xx: fix phase offset calculation
Related show

Commit Message

Radu Pirea (NXP OSS) April 20, 2021, 1:11 p.m. UTC
Fix phase offset calculation.

Signed-off-by: Radu Pirea (NXP OSS) <radu-nicolae.pirea@oss.nxp.com>
---
 drivers/net/phy/nxp-c45-tja11xx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


base-commit: e9377a911d772d27ef2810c241154ba479bad368

Comments

patchwork-bot+netdevbpf@kernel.org April 21, 2021, midnight UTC | #1
Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

On Tue, 20 Apr 2021 16:11:33 +0300 you wrote:
> Fix phase offset calculation.
> 
> Signed-off-by: Radu Pirea (NXP OSS) <radu-nicolae.pirea@oss.nxp.com>
> ---
>  drivers/net/phy/nxp-c45-tja11xx.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> [...]

Here is the summary with links:
  - phy: nxp-c45-tja11xx: fix phase offset calculation
    https://git.kernel.org/netdev/net-next/c/6b3a63100ded

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Patch
diff mbox series

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);
 }