Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3336960pxb; Tue, 20 Apr 2021 06:13:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4vtbCTiLceQAA6MShkGOuFLye1jk5sP9Bu3RxuZUPbWTLDtPWXgM4/yfyaT288K3Xrh27 X-Received: by 2002:a17:906:3455:: with SMTP id d21mr27385808ejb.11.1618924402678; Tue, 20 Apr 2021 06:13:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1618924402; cv=pass; d=google.com; s=arc-20160816; b=SeX4LrbxQSVvE9Lc0aEfcpFiyUbzjoeIzj1xwm9c6Go+/rSmE+NR0+zmJpxGpxf3OK dQE6t+wg75lZ77Ph/OmLpxFlVVexe+DIWOfvFihUci2hfJpExs6pX9rNzgbXUa6VE8fx RdqQhn4noIda7wgwkV66uPwbwUY5ZBAmgQ/Q1KLnOM0vjqpAXyijNYpb+emzkVAVRDNK QOQl6vrOM9hrs9OQdoCIV/9+QnkBhxRfZ3BWn3aOWHBwQHOp7ZVWXWJ9cFrtZf/d6rtn 8JzS7MlDsJlCmUw/Obvw5oQfvCpfTbkbkk+bS1ElZS9jXk8hH/u7UqRoV4yWYdtiz+B4 N7Cw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=8izdcpnP2z88lk8Jcdwlsb0o5ja4AsHz6gXUrXrwfbA=; b=qxurOp4WW2j0pylrGA67Uff6lTaEtl0fs45G/VoIYyLd9NUCT1yZUvGe5IKpoVKhvM Dz2+Y/72nOprbrH413BOihmZcyAozpJrXYePNvoCzhZB5sAfv2eHkXTP1+/wiNnO/0Ud TlZMgC6ZrdaJ9xRy24wZRUzpF/JlnNrw3+TDoVCAcVeDD85oqhd3xK5rnrvNgVqyI5WO qfjCwDfOrKXOzZDEilniB7Z855QxlpA52SVUhxnYRll+Ay8OU02sbi0mcrLF68b9R4ed 3TYgYHy8ACV0biYdBNi4FhBoK4NOVdKJ+rQLMQuek3sLKSMxhpPbwuHMdcEPYA3CZtyO zzJw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=TyS2bybg; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r17si14048022ejc.193.2021.04.20.06.12.57; Tue, 20 Apr 2021 06:13:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=TyS2bybg; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232171AbhDTNMV (ORCPT + 99 others); Tue, 20 Apr 2021 09:12:21 -0400 Received: from mail-eopbgr130041.outbound.protection.outlook.com ([40.107.13.41]:42588 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231313AbhDTNMU (ORCPT ); Tue, 20 Apr 2021 09:12:20 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l0/oeW5JfCiCiGv0OEbMMvC+WvonppC57eSn2gKInM22m9uBjqwwSr/87WhlMdzYBl9Tux28Q+k1uDJ9xc4Of3eq2lSP2DdhWSD5KWYXryspuC0SKB5qHFsCGzl7TQL9cVUItwOeIJtW3YGp+t4c9aX4v16Ve93fjouAQflJ4S9WQnJTgNW2Dq2vsX4ixj5blXtuooKjWbObj+2zim4VkcGBD3rouRmOCBG6CU82rYVeNUSk/jK/jRyc7TywM/4o1SUyt1VRZCj7GuYbmaKHBsrqKZq9rSkp7cxiM4NS1oUI+2rhvHU4GVKtq0U1cnxiSFmcuSeWCOfLXvANfzksWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8izdcpnP2z88lk8Jcdwlsb0o5ja4AsHz6gXUrXrwfbA=; b=gkgxSm+y5fMqCHu246FGMeB1Tl3DT/ZyqSpl4jmyxR/2PsVdUDUv/QIFn6xeYoKBkxZsrB9OVDVsjtf4rzIV/wIjA/THo/Us2W/xLssAcdfLlCzGSblkh0Cny9C1c2qH5iz/OdATN+hKoCQ9Yd3Q4ISKUKGXsXqTgpw1B5zd1re02FkO7Qdo+uwQh1PPCOi49jUVveVhAYzlSOvKen40tvVjoQSUk11FWbccm+qWxXaChb7KY/fRjsHpNmimIs7Lgx4KbqBLD+OVyZkcE5q7Yamkjn7VLoFJoJy1eyF2spM7QU36HmUdBzSMyWwRL4QcPCJq2R+53jBU4lHEkLPCbg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8izdcpnP2z88lk8Jcdwlsb0o5ja4AsHz6gXUrXrwfbA=; b=TyS2bybgFLYyjLmY8HnMzc1W7+hblXg5k8OcOojaOhrYtkh+X5HkRO0eHKRevjxFtOpdZuHbn99pPFaGUWDrlUKnia7vl3J2f2+3vvN7XfSs+QPbG5Sr89v+LzZ5fyFMDdtKmzScReOPadPZjgzKvFNXrHOv//0Nzb8TaeloWiA= Authentication-Results: lunn.ch; dkim=none (message not signed) header.d=none;lunn.ch; dmarc=none action=none header.from=oss.nxp.com; Received: from VI1PR04MB5101.eurprd04.prod.outlook.com (2603:10a6:803:5f::31) by VI1PR04MB6061.eurprd04.prod.outlook.com (2603:10a6:803:f2::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.19; Tue, 20 Apr 2021 13:11:45 +0000 Received: from VI1PR04MB5101.eurprd04.prod.outlook.com ([fe80::1d18:6e9:995c:1945]) by VI1PR04MB5101.eurprd04.prod.outlook.com ([fe80::1d18:6e9:995c:1945%6]) with mapi id 15.20.4042.024; Tue, 20 Apr 2021 13:11:45 +0000 From: "Radu Pirea (NXP OSS)" To: andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, kuba@kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Radu Pirea (NXP OSS)" Subject: [PATCH] phy: nxp-c45-tja11xx: fix phase offset calculation Date: Tue, 20 Apr 2021 16:11:33 +0300 Message-Id: <20210420131133.370259-1-radu-nicolae.pirea@oss.nxp.com> X-Mailer: git-send-email 2.31.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [89.45.21.213] X-ClientProxiedBy: AM0PR10CA0100.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:e6::17) To VI1PR04MB5101.eurprd04.prod.outlook.com (2603:10a6:803:5f::31) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (89.45.21.213) by AM0PR10CA0100.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:e6::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.20 via Frontend Transport; Tue, 20 Apr 2021 13:11:44 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c9b428e7-733a-426b-fc92-08d903fdd8c7 X-MS-TrafficTypeDiagnostic: VI1PR04MB6061: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:59; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gzeEAyOmfiKtqfh+2GTZu7Y3cfqegu7L+AGWVVZu7yWEstwaRdSNHiX1twszOpdp9qEbwV1MTvcE07FFk9N/DqboFQxEGtp6oZOkdgkcrLlQ8U3vrjEFsrZbZ4FiQOrmgWsmlBQVFnuk9rAXp37gUKp+pls+9P83GxEJe4SsQAk+OtYws9064Q1Z/DVigz/7StFjMInLyiTjMDkPnLVT2yOqzHD/7EWQQbwewW7miqj3JXZscE/5Q4SB/V+zifMyO/q2G22PKX7cUX5QVNrUjMSEOpyFcXbOEcWtI7SoIQRLuVTEHWQq03RKQ4LeaqIgXhsYhJPzlvz2YtGbDmSrbgOzoQNgqhpObAlsl1Z52JPpckDS/Zl6oAn38THZtx40nQLClsZY8k8Jbgg0AKdAIid/ine4l1MD61ZbxK5IJaVp5BXGEbbIhjUoniA0NVxsAONxdhzvZdGOjxSvZ6OhCG4d3vVmwwGirpXB7UJZxX6S7q0tO45Qb2KgYAmKyJfzKW7un3eloETSGOMajDRfZSddaL5AkDkNTet5JomOFqExG94UrNfEM0ZC2YH/JRUICTCCVdNNDnOvSbqpsDuYzqJqAdbkrScjNWeNdNIBku3l/33/CYn048n7i5QjKJo+kMPXo/LL6pkFvGZ+9Coa5XxMuhMqZ6pMT9HOaEcv3cBF4erZTkI2WtaN+1ECS1yIAv8hVVAagUn1lrhMv/TK5Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5101.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(376002)(39860400002)(346002)(136003)(396003)(6506007)(4326008)(956004)(5660300002)(16526019)(83380400001)(66476007)(38100700002)(52116002)(478600001)(6486002)(4744005)(26005)(2616005)(1076003)(66556008)(86362001)(8936002)(6512007)(66946007)(6666004)(316002)(8676002)(186003)(2906002)(38350700002)(69590400013)(41350200001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?/woaH6tF48ZIs+v48Xvm3ppBetjZLy2YI0GkF0RhTTLf9B/C73+DGW3IxHOx?= =?us-ascii?Q?Tfr00rNq2Yp0dCwyW1Q9MtLmWcOHKcW2SIxQgYzomw81Nz5PiLcjwBUQAGM2?= =?us-ascii?Q?twrUk4SA4YObctZayaT2HZ9q0D279bMRtJh69+6tful5L814BKtuLaCDbidn?= =?us-ascii?Q?w2SLEg5kVtuMT2rhZg+I3BGNcJVN9+qsx/YIjpUEfJrVAIfTsmcDsPp7/uEn?= =?us-ascii?Q?E4MHw4VRHV5nJMUSJogNns/yZKR+j3Ak8heR+MK3suK68fxM/XeTy6AjmAiH?= =?us-ascii?Q?mOc9qkP9KV+jpCav9j9w9T3gESZl0ngCPjTXq5Irw3y+U89FQ4XyZbRT/OMx?= =?us-ascii?Q?7G0iSkej33Lb8Ld3GbFJPAFzVNkDpN0kz8/l9HtK5wmMcpm+OZy+lpqD8unx?= =?us-ascii?Q?R4RyA3mzzTH7nRWOEIR2AQhW5uj/egqwQZ0S9Hwko2ERQEBMK/YZG1Zbr4m3?= =?us-ascii?Q?TqBTPWo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xp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c9b428e7-733a-426b-fc92-08d903fdd8c7 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5101.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Apr 2021 13:11:45.1388 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 4Ah+mHjbFNJ6RWNo240TAwJH3M7ROB1WP6BgtvmdsN0N2mZ0yZ1ZafWxNv+wcdANfoordlf58dBlwFlosDUbEbbGTi1+Sx8odLn50xj+oxg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6061 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix phase offset calculation. Signed-off-by: Radu Pirea (NXP OSS) --- 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