diff mbox series

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

Message ID 20210420131133.370259-1-radu-nicolae.pirea@oss.nxp.com (mailing list archive)
State Accepted
Commit 6b3a63100dedfa1f0887eb316110d5d7b0c51ed4
Delegated to: Netdev Maintainers
Headers show
Series phy: nxp-c45-tja11xx: fix phase offset calculation | expand

Checks

Context Check Description
netdev/cover_letter success Link
netdev/fixes_present success Link
netdev/patch_count success Link
netdev/tree_selection success Guessed tree name to be net-next
netdev/subject_prefix warning Target tree name not specified in the subject
netdev/cc_maintainers success CCed 7 of 7 maintainers
netdev/source_inline success Was 0 now: 0
netdev/verify_signedoff success Link
netdev/module_param success Was 0 now: 0
netdev/build_32bit fail Errors and warnings before: 6 this patch: 6
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/verify_fixes success Link
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 8 lines checked
netdev/build_allmodconfig_warn success Errors and warnings before: 0 this patch: 0
netdev/header_inline success Link

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
diff mbox series

Patch

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