lkml.org 
[lkml]   [2021]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] phy: nxp-c45-tja11xx: fix phase offset calculation
    Date
    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(-)

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

    base-commit: e9377a911d772d27ef2810c241154ba479bad368
    --
    2.31.1

    \
     
     \ /
      Last update: 2021-04-20 15:12    [W:3.582 / U:1.524 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site