From patchwork Thu Dec 21 09:32:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "D, Lakshmi Sowjanya" X-Patchwork-Id: 182120 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp294374dyi; Thu, 21 Dec 2023 01:41:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IGa1bjlZQV2Td5gGTYqy0pKMrJIBiONOBcmuUpUBS4Tzo0u+FU2UACF+fCCLkWwQB+u5qdB X-Received: by 2002:a05:6808:1984:b0:3bb:6984:f445 with SMTP id bj4-20020a056808198400b003bb6984f445mr4314466oib.34.1703151661830; Thu, 21 Dec 2023 01:41:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703151661; cv=none; d=google.com; s=arc-20160816; b=tE+KboPEeGGVwBJPVk1077l6it5QCxKiLIY6G5M/p7sx9IanqIx4MZZ8Yis5G3ehFx +AYemMcLsKhLu8mtX6GTh07NIIfJPxUXjM/DV1DDFpg5ugjf1XS13Pa+qEnYndnJeXqr RnYHYpkzge+Jh/2n9O4Jx/Qab8HlRn37r+MnPTIFNqgSbkcAApIVtOLHowbzWTiZCEyn iMvzRR23SvuC4BtY+0v9Xj7+KdaNnQexQu8/6oCF+fu80ZtSSPUqCtswliBprmOJHud9 u57z9vKwDHJrDJBls/8p1c/ioE0b9QdryX0IOZH9AeW7fNGaSrxJRdLY3sGtV6BkU4CQ F8fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=+xK5Qg9KSIPkv/nQ9AM9OwYbjDloqDgJX/+IIJ7S58c=; fh=4NrVLy9e1N+ecgT+cYXeaYo3IQFJO3N8B6ul/oSBUd8=; b=TDbJRfXTDB9HHnFofqoSHO70MnLtD3lqUXrA/xvEIMyXcAEDKpu5BiqL2O+biCIFGj rPFnIche9TtE2dgSZpzmg5KSmv4g234ha4DpLunMEX5u3UbuEzau09Whu7fllBZv7SI1 y8m/959yzEDT/6Au0fgB+UDB7ovdUmkn6n+UuuhhJjqs5tBfWEjUNOGBjeCE3SlcEeKL KBBgMioYNc3id3Oav6t339THUteJ4bTmGKRysEvklrwdp+q96MoNnwNb8EZPWM6cKqfl gIZyvytkbyYRA3H9ZQGX0gvUlgBFR2r9lWY/f44794IhGyi1Mlu97nLLJfRHso3F3yCL 1Rrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=E2MLMAge; spf=pass (google.com: domain of linux-kernel+bounces-8149-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8149-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d17-20020a0cb2d1000000b0067f2a560ab6si1671637qvf.495.2023.12.21.01.41.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 01:41:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8149-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=E2MLMAge; spf=pass (google.com: domain of linux-kernel+bounces-8149-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8149-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9ABFB1C25292 for ; Thu, 21 Dec 2023 09:41:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 283FB5275A; Thu, 21 Dec 2023 09:33:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="E2MLMAge" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B54BE52745; Thu, 21 Dec 2023 09:33:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703151227; x=1734687227; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=+PyxmFRWe/t75785UAnv5jwKbLbVhxVPk8E+eOUGbOw=; b=E2MLMAge8cX3Z5ii1P4ACwVYlkDzJ+N24gydtW83VBdV7ZQYHjYxOTZF u/wyrgpfBCsnCY8SP9TRHj9j9uPQDxwkGIVYOKl2WuW0Zv6sIVp5y8uH3 jb7hs6q25VkiYjmvRwHJWIbykrp2bqSm2yp/Utak3dBO9+wO9J8mZ2C1U x1o8la/5utCneklOIppTQHeSk9zjzoJQCcPSGZvWUEYFUcpkP6C0hpE9f WZJlE3kOcbpGT6kCu3wSvfChVXhMas/jvWWCx1OiDYQMvFLMI3KgnL09+ 6n9Hmkg0VTFCl4EUurcL7C+Xo5RQf748Nww8J5+GcBDf3S3zdfHBEB8fg w==; X-IronPort-AV: E=McAfee;i="6600,9927,10930"; a="3188604" X-IronPort-AV: E=Sophos;i="6.04,293,1695711600"; d="scan'208";a="3188604" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Dec 2023 01:33:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10930"; a="810918227" X-IronPort-AV: E=Sophos;i="6.04,293,1695711600"; d="scan'208";a="810918227" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by orsmga001.jf.intel.com with ESMTP; 21 Dec 2023 01:33:41 -0800 From: lakshmi.sowjanya.d@intel.com To: tglx@linutronix.de, jstultz@google.com, giometti@enneenne.com, corbet@lwn.net, linux-kernel@vger.kernel.org Cc: x86@kernel.org, netdev@vger.kernel.org, linux-doc@vger.kernel.org, intel-wired-lan@lists.osuosl.org, andriy.shevchenko@linux.intel.com, eddie.dong@intel.com, christopher.s.hall@intel.com, jesse.brandeburg@intel.com, davem@davemloft.net, alexandre.torgue@foss.st.com, joabreu@synopsys.com, mcoquelin.stm32@gmail.com, perex@perex.cz, linux-sound@vger.kernel.org, anthony.l.nguyen@intel.com, pandith.n@intel.com, mallikarjunappa.sangannavar@intel.com, thejesh.reddy.t.r@intel.com, lakshmi.sowjanya.d@intel.com Subject: [RFC PATCH v2 07/10] ice/ptp: remove convert_art_to_tsc() Date: Thu, 21 Dec 2023 15:02:51 +0530 Message-Id: <20231221093254.9599-8-lakshmi.sowjanya.d@intel.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20231221093254.9599-1-lakshmi.sowjanya.d@intel.com> References: <20231221093254.9599-1-lakshmi.sowjanya.d@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785883957127776781 X-GMAIL-MSGID: 1785883957127776781 From: Thomas Gleixner Remove convert_art_to_tsc() function call, Pass system clock cycles and clocksource ID as input to get_device_system_crosststamp(). Signed-off-by: Thomas Gleixner Signed-off-by: Lakshmi Sowjanya D --- drivers/net/ethernet/intel/ice/ice_ptp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ice/ice_ptp.c b/drivers/net/ethernet/intel/ice/ice_ptp.c index 71f405f8a6fe..f4611a5d8c27 100644 --- a/drivers/net/ethernet/intel/ice/ice_ptp.c +++ b/drivers/net/ethernet/intel/ice/ice_ptp.c @@ -1978,7 +1978,7 @@ ice_ptp_get_syncdevicetime(ktime_t *device, hh_ts_lo = rd32(hw, GLHH_ART_TIME_L); hh_ts_hi = rd32(hw, GLHH_ART_TIME_H); hh_ts = ((u64)hh_ts_hi << 32) | hh_ts_lo; - *system = convert_art_ns_to_tsc(hh_ts); + system->cycles = hh_ts; /* Read Device source clock time */ hh_ts_lo = rd32(hw, GLTSYN_HHTIME_L(tmr_idx)); hh_ts_hi = rd32(hw, GLTSYN_HHTIME_H(tmr_idx));