Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932983AbdLROOF (ORCPT ); Mon, 18 Dec 2017 09:14:05 -0500 Received: from mail-bn3nam01on0056.outbound.protection.outlook.com ([104.47.33.56]:27185 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758074AbdLRONy (ORCPT ); Mon, 18 Dec 2017 09:13:54 -0500 From: "Kalluru, Sudarsana" To: Sagar Arun Kamble , "linux-kernel@vger.kernel.org" CC: Richard Cochran , "Elior, Ariel" , Dept-Eng Everest Linux L2 , "netdev@vger.kernel.org" Subject: RE: [PATCH 18/27] bnx2x: Use timecounter_reset interface Thread-Topic: [PATCH 18/27] bnx2x: Use timecounter_reset interface Thread-Index: AQHTdXdb4BrmkC90c0+V2ZBdOYybJ6NJKegw Date: Mon, 18 Dec 2017 14:13:50 +0000 Message-ID: References: <1513323522-15021-1-git-send-email-sagar.a.kamble@intel.com> <1513323522-15021-19-git-send-email-sagar.a.kamble@intel.com> In-Reply-To: <1513323522-15021-19-git-send-email-sagar.a.kamble@intel.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Sudarsana.Kalluru@cavium.com; x-originating-ip: [114.143.185.87] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM2PR0701MB1341;6:mmVXgDCvKw+7imNKcxsd4r+W+HnLTopCFSGEyqt1OgaQN3slVWSjEMIxioHBDILjVMyypM1pvkYKCHGLsL0zvQ92bTr2Rc12E8FIp+PP8m6cLbHGJ5HJURXhdK6+SOGm7ENpv3BlCF0komumf8s+TrAkhAZHhVP77K/D9IORSUTdeHozqCbLnjIievLEd6DhFpwVYZU28VaoOiRnxacRM0EWRSHO9kpKuTmJWkA8/hSOg2mJ9FKE+PFS5rKC79LNTbIUneKC2hXrjj9YcNwdAiaU4cD2Ca+K4KdqD5pBRk8BWSS1+O2cCxWJ9OvMq3PNfAiTX54C3A2C4NzWRDjeH47rbSfHRfcLQ28xCOJ3v/M=;5:sUw1kEeotl7Bzu3Bdz2jRGFXMmlXJHOXDL7ClGrAnyb27/sbjsR7usOVyfnPEuoxuIob305lTBu//wNjFpcDgGL5/s0Uro3fcOJgOhWzadnTvT4jcATM5mSKa6MPzJj5kdPCbPWnQP22NuZFGAuyyvYpoj09YP95jav6Pt5UEro=;24:d87Rgo3JYSJpLPqjQZ3tgPItvzwwcSFDp6A4sbrgsn6BejW42O96wtmjX0RTpHEoORineu2tauw5zDb+2GAjeryeipWf4uAiROUaw+vjxXM=;7:8TZa25G/JJDzyinLw0ebIdpGPeOQW3ze9wtuHPeNWRTjiZmtMX1Kl+9O7SvFmnGKRj3nQstLmAGsE8NcadSrOLICY1miiCHGEXZGk2lqFPa1tWjrUHFlv2PuBrI6jT2XGa3UPnBg01C7kaxgogM7aGreIZqVtPSS5RjdKVSwPZZrw5G+j+jSXWnF2Mlee90Ol9SuIHLCtbiMxnYNPYfTsPX+WrLfErnz4mTEFEAIdamHwrbIIlaw9hbeiJK4CUrs x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-ms-office365-filtering-correlation-id: 58fdffa3-9410-4de7-8d43-08d546218fcf x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603307);SRVR:DM2PR0701MB1341; x-ms-traffictypediagnostic: DM2PR0701MB1341: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(3231023)(6041248)(20161123564025)(20161123555025)(20161123560025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(201708071742011);SRVR:DM2PR0701MB1341;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:DM2PR0701MB1341; x-forefront-prvs: 0525BB0ADF x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39850400004)(376002)(366004)(346002)(396003)(13464003)(189003)(199004)(7696005)(8676002)(72206003)(3846002)(2501003)(6116002)(59450400001)(106356001)(105586002)(99286004)(14454004)(478600001)(3280700002)(39060400002)(102836003)(2906002)(6246003)(33656002)(66066001)(53936002)(2900100001)(81166006)(3660700001)(8936002)(81156014)(76176011)(97736004)(74316002)(6436002)(305945005)(53546011)(6506007)(77096006)(229853002)(9686003)(55016002)(110136005)(5660300001)(316002)(86362001)(4326008)(68736007)(54906003)(7736002)(25786009)(2950100002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR0701MB1341;H:CY4PR07MB3048.namprd07.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-Network-Message-Id: 58fdffa3-9410-4de7-8d43-08d546218fcf X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Dec 2017 14:13:50.2621 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0701MB1341 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id vBIEE8QE008997 Content-Length: 1548 Lines: 39 Acked-by: Sudarsana Kalluru -----Original Message----- From: Sagar Arun Kamble [mailto:sagar.a.kamble@intel.com] Sent: 15 December 2017 13:09 To: linux-kernel@vger.kernel.org Cc: Sagar Arun Kamble ; Richard Cochran ; Elior, Ariel ; Dept-Eng Everest Linux L2 ; netdev@vger.kernel.org Subject: [PATCH 18/27] bnx2x: Use timecounter_reset interface With new interface timecounter_reset we can update the start time for timecounter. Update bnx2x_ptp_settime with this new function. Signed-off-by: Sagar Arun Kamble Cc: Richard Cochran Cc: Ariel Elior Cc: everest-linux-l2@cavium.com Cc: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c index 1e10a81..e30e736 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c @@ -13849,8 +13849,8 @@ static int bnx2x_ptp_settime(struct ptp_clock_info *ptp, DP(BNX2X_MSG_PTP, "PTP settime called, ns = %llu\n", ns); - /* Re-init the timecounter */ - timecounter_init(&bp->timecounter, ns); + /* Reset the timecounter */ + timecounter_reset(&bp->timecounter, ns); return 0; } -- 1.9.1