From patchwork Wed Jan 3 11:55:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "D, Lakshmi Sowjanya" X-Patchwork-Id: 184721 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp4970938dyb; Wed, 3 Jan 2024 03:59:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IHapi/vhYx2SMdi/h99XK+2+U94AiFCiA/+h2YmyOBI65bZigcjS9mqw7IS8kjAHD1GMcN8 X-Received: by 2002:a17:906:f24c:b0:a26:c2ee:b088 with SMTP id gy12-20020a170906f24c00b00a26c2eeb088mr853759ejb.57.1704283185201; Wed, 03 Jan 2024 03:59:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704283185; cv=none; d=google.com; s=arc-20160816; b=vjPbf8EDHj9fdFv5/SxNrNILdDzG9Z4YiK3NpTMUmGQr216hm471pac78LC2lo7jU3 5vDNUouqB2H9zGaU6foWITUBD5ikZcSzIVlBTNmpj/oHrrubM4AvBznLF7gAr3Z28gMi 5+hIS+MdG9pDMsCVymf6L4TnGUhdD33vLZJPUpXfTLeKI+6L/783qVuIjqux4YgGP3ji hYzZ/CDYtwvmFoMhJq+porJI+DnV5M02m4ZfheK9kAoToizuFV3IzMRpnNeQ/0dKqxyZ rxpOYy3SJI5KgNRlEXF9ophXBAAz2K4dwxtfuZ7wVp+Ri/FwPqPiIoEhQ5fiW3IqJrib zE3Q== 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=JDrAAZl8V1v7c65jT6j9/8mUPIQeoLkSY14GrOWnOCldQkA4t1I5sS+d8zvnVRgYxb 6oM9LkHeSCf29v0JoNb19I/5bttlJYPjF7W+2RDvwmvIqRJGNJOHU9nLd46wEJKNFFYb NpRlyjXKzYavUWsKFLzIRedCKjk+L/e3cinfsDpkApTLNmdsym8oPC8j7H8df5DqBnyC KAPY1AOmAi3LX48OApDBthE97VYaYoUTIYPkdTh8VDOxN2Hkdmq9ictDQSUNXb+wLzml P5i22vP+VZSMXVpE062HDsvFtV4lu+4Md0yoLdbosb2uCj7R0BsD153Bm7xv0J2vZEJ3 UIZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ORtU6G6q; spf=pass (google.com: domain of linux-kernel+bounces-15475-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15475-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gh20-20020a1709073c1400b00a26afef8ca3si10487873ejc.365.2024.01.03.03.59.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 03:59:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15475-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ORtU6G6q; spf=pass (google.com: domain of linux-kernel+bounces-15475-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15475-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 am.mirrors.kernel.org (Postfix) with ESMTPS id C83841F23829 for ; Wed, 3 Jan 2024 11:59:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD9FF1A73F; Wed, 3 Jan 2024 11:56:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ORtU6G6q" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) (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 E645319469; Wed, 3 Jan 2024 11:56:54 +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=1704283015; x=1735819015; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=+PyxmFRWe/t75785UAnv5jwKbLbVhxVPk8E+eOUGbOw=; b=ORtU6G6q9S0Fd8VQ/8UcYGBoMiWDuw7HpT4VHUURUf41b0x88ibB6sLi LRjw9sEcTlWk90JUMo9cqeeDBD//EKZjt+WEPtbvgNcHcFgAqe4YqWkKQ x/EDzpJJ9xJKB5jFGjkFsrAYDnAzk1qavKtHjcL3meIVOh6CKzy5nOCKx oyNWIgkL+u9R1MhPl4qTTc2AiR3/814i2LD0zsonVryX6oUFmvzzjN8Gg +X0a2cz76jK6gQX+q1ruc0DLEwy/ojREsQz4r7v5lFFoWD9FS2eA1KT+R 7wHlRwCXSZkpoP4zzTfVfQrRzhBuUW1MqcNRULqQD0ZZyuHHy5EzRVHPl A==; X-IronPort-AV: E=McAfee;i="6600,9927,10941"; a="428169554" X-IronPort-AV: E=Sophos;i="6.04,327,1695711600"; d="scan'208";a="428169554" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jan 2024 03:56:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10941"; a="1111348106" X-IronPort-AV: E=Sophos;i="6.04,327,1695711600"; d="scan'208";a="1111348106" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by fmsmga005.fm.intel.com with ESMTP; 03 Jan 2024 03:56:48 -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 v3 07/11] ice/ptp: remove convert_art_to_tsc() Date: Wed, 3 Jan 2024 17:25:58 +0530 Message-Id: <20240103115602.19044-8-lakshmi.sowjanya.d@intel.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240103115602.19044-1-lakshmi.sowjanya.d@intel.com> References: <20240103115602.19044-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: 1787070445634716816 X-GMAIL-MSGID: 1787070445634716816 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));