Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758828AbdLRONv (ORCPT ); Mon, 18 Dec 2017 09:13:51 -0500 Received: from mail-co1nam03on0078.outbound.protection.outlook.com ([104.47.40.78]:27509 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758762AbdLRONn (ORCPT ); Mon, 18 Dec 2017 09:13:43 -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 25/27] qede: Use timecounter_reset interface Thread-Topic: [PATCH 25/27] qede: Use timecounter_reset interface Thread-Index: AQHTdXdl2ftNLMSzXUqMD4tqz8C7EaNJKdgA Date: Mon, 18 Dec 2017 14:13:39 +0000 Message-ID: References: <1513323522-15021-1-git-send-email-sagar.a.kamble@intel.com> <1513323522-15021-26-git-send-email-sagar.a.kamble@intel.com> In-Reply-To: <1513323522-15021-26-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;CY1PR0701MB1340;6:IT93AjQu7lh/i2NaeUzpMGyGlMPMOXSKHiGFihYBqCTM9qqNy1dZYpyWpQjaMkSqfuixBdCD9d/bdflwD3bU8sd9lGiq1TdyRLJTATXm7c0XBQVIvQfRedvLLRZQrw/BNEB+ELQSGF9sCKl+gMzWoFV8Vp5LGQ0QeKoiksxKczLvZJvGccAbNsoCq0fPXKJmaEVUNXVLQch9I8M+R8woeY30IeCcZe7RLJFlgMh9MYUgB3xg5WZ230lSoTbg+d401Os3pLnrTT3LR1LaXwL06t+lAFSFZyjLX3VKF/CMGAYgUzm7TI5R6HksjJ0KbhdXTvnK1lThjao5pwRcsUglqhpOiwQ9CSXBfjmk7AUVnCI=;5:4vnbCTRp1iVsa698TUc/pUGgYzfMZ1+B3qQfdWlLQgs1b9rmW//LN2Dsk4xDJ9EBDjubG5j2I+NtFTT7vWvCFfpK59L2A05JRGPdbpz2BfwOHVERuw7Mw0jfNpm2voXCdq8koSc6l2HFyg4uwv3l7lsxt1WlvD4Dy7rRXP9QpxY=;24:vrIpYKRMNNevNgmdOKFB3zSUTcQEh4iQlHmjj/BQYSh8e4unNhCL9tLsZI5/JC3UY6+93X80hQR+M8EmqPA548W/L2v9a0bPnTJHHrsgv+0=;7:epvomFzweqtTlSGpTESDSvlBnfQ4LDpxfC0ryX3sUTX127+s0LAoMU4/ka28C/JICKKhpVk3qUjffzoRBVc4D8kfXUwi7K8cspuxQF5Bjy728qUi5A8VCHmHctGs9NYdgpKM6BngIN13bCGeDR3UJMGhmRHgbUe5nTHF/TZdG64dt9dRRkxGE32FXsr19xiGB/DefNea0+ph3ZzD8ydlUKgEzG0ZbVdK86wUwj7f3n6l29XL5qS0CgWtAQqIgPv2 x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-ms-office365-filtering-correlation-id: d88b43e1-adb2-41b0-b27c-08d54621897c x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603307);SRVR:CY1PR0701MB1340; x-ms-traffictypediagnostic: CY1PR0701MB1340: 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)(93006095)(93001095)(3002001)(3231023)(10201501046)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123560025)(20161123555025)(20161123558100)(6072148)(201708071742011);SRVR:CY1PR0701MB1340;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:CY1PR0701MB1340; x-forefront-prvs: 0525BB0ADF x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(346002)(39850400004)(376002)(366004)(199004)(189003)(13464003)(316002)(39060400002)(54906003)(110136005)(2900100001)(4326008)(2501003)(25786009)(33656002)(55016002)(77096006)(8936002)(3280700002)(3660700001)(2906002)(229853002)(9686003)(305945005)(7736002)(6436002)(99286004)(74316002)(68736007)(81166006)(81156014)(102836003)(3846002)(478600001)(97736004)(6506007)(105586002)(106356001)(6246003)(53936002)(86362001)(2950100002)(53546011)(59450400001)(7696005)(76176011)(8676002)(72206003)(5660300001)(6116002)(66066001)(14454004);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR0701MB1340;H:CY4PR07MB3048.namprd07.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX: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: d88b43e1-adb2-41b0-b27c-08d54621897c X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Dec 2017 14:13:39.6215 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0701MB1340 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 vBIEDsU1008962 Content-Length: 1570 Lines: 40 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 25/27] qede: Use timecounter_reset interface With new interface timecounter_reset we can update the start time for timecounter. Update qede_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/qlogic/qede/qede_ptp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/qlogic/qede/qede_ptp.c b/drivers/net/ethernet/qlogic/qede/qede_ptp.c index 0d054dc..c2de311 100644 --- a/drivers/net/ethernet/qlogic/qede/qede_ptp.c +++ b/drivers/net/ethernet/qlogic/qede/qede_ptp.c @@ -129,9 +129,9 @@ static int qede_ptp_settime(struct ptp_clock_info *info, DP_VERBOSE(edev, QED_MSG_DEBUG, "PTP settime called, ns = %llu\n", ns); - /* Re-init the timecounter */ + /* Reset the timecounter */ spin_lock_bh(&ptp->lock); - timecounter_init(&ptp->tc, ns); + timecounter_reset(&ptp->tc, ns); spin_unlock_bh(&ptp->lock); return 0; -- 1.9.1