Message ID | 20240103115602.19044-4-lakshmi.sowjanya.d@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-15471-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp4970493dyb; Wed, 3 Jan 2024 03:58:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IHP8gRyMN2SEi2LfLihyzTfkWjeekJIhRtTEvIreSndzfp0QlhUTxde5FwjNpOFLo4VMxWp X-Received: by 2002:a05:6358:63a1:b0:175:3314:6a25 with SMTP id k33-20020a05635863a100b0017533146a25mr1874920rwh.5.1704283111470; Wed, 03 Jan 2024 03:58:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704283111; cv=none; d=google.com; s=arc-20160816; b=N3Mlx3qiwHAt2dt++ee9cHnR8/MFes+5kM8AH7mFWnYt19S162QAKKD+ULeupMYVbZ cG58reK7oKZuqzc4XtxXWhoOJfoS03aXT4Y1cZN3eJRSVdsP3RmpdkSb3JwGJvSypxcc ZNW1FIDBIGkPdnz9E+/EYNLp+Ws+oHn2qCfdPJIxFsZbCLd7cp3vSLkByuOSqP1rikNb C3Jb3bKru29h9xgc6cmNp0Z2k5J9VDDOoyl4riZMQvYjJUfuC+LWFzknuzitE24dxp8W Evq6NsaSCeiMQA2OLGn6ELQjuHYriB7ojo0IQ1NSdwhqdv/eoYp5sEYYk6KwGMlqsMPm ZHow== 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=gis08HwNa13gqJT4xSWhecfMDHqbJ3I83Rn/h46vHzk=; fh=4NrVLy9e1N+ecgT+cYXeaYo3IQFJO3N8B6ul/oSBUd8=; b=FDXgAcekSbM+caKrupNEgLFxd3515LSwljrfocZW8+ysTF6TL4RpcMqdxHcdxRk0re 5gcqQtf6E5+mL0UW/agrUqtk9rWMvOug1Ek+H7ytEp0vJlFv/rq28HPmRs/CS1sBjzT8 TM0OSgPNTEjuCYNtsSUKNK3xSF/oTdYma/Do2jOX3juAyec764xYhvAwya2X3Zq51OM4 FGfoV0S4I8PzE8oQnvdGranR6F05JKIniZh8k7SPJ9Z/NLN8N+jpyMu33mKMgy/DZ3BL /gNOhJvuPAlK8oEl47Pq6RdPsVJOiRYqUnjlmkYEL06lyvKGJWzLObzh3uID0QLcanjN oT7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZyhPTenc; spf=pass (google.com: domain of linux-kernel+bounces-15471-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15471-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id l123-20020a633e81000000b005ce037d6bd4si17954282pga.96.2024.01.03.03.58.31 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 03:58:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15471-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZyhPTenc; spf=pass (google.com: domain of linux-kernel+bounces-15471-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15471-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 7E963B21A3A for <ouuuleilei@gmail.com>; Wed, 3 Jan 2024 11:58:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C66319BDC; Wed, 3 Jan 2024 11:56:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ZyhPTenc" 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 3AF64199AB; Wed, 3 Jan 2024 11:56:46 +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=1704283006; x=1735819006; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=PmpIlUpx7+DXd9SlbVWYDCreHkh1wtkoXMr9WfcfHRg=; b=ZyhPTencLXNPF2dU4knc9n1fhsabCJ2utgsXfuoYfBa0HSC7grQgeXpC D8jGW4DqxvrvK7uXygZVCxrWm4i8xUVB2CZ4hcuR7/FvSjgxzKAOkDrvH oNxE8WM5pSYFopr+r8oiLjoxH97v/X82qBQxnAHTC/CJG7ljHzLY9NUiq bl6ukYG0olxlgt6pZmUREZskMFjdkvwBU2xtvbhEzECmzOOPiILuDw7pC XA0sce5JAFaewm68GWAACwkG692ATk3wUUr7AXcHnTsVZLmNs2z1zcJYG d6B1oSLSs/SU5/+hKwkpBDYzWbjnXF6DzYPUaMCl9eI7/Ln1+WRiXhkGT Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10941"; a="428169480" X-IronPort-AV: E=Sophos;i="6.04,327,1695711600"; d="scan'208";a="428169480" 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:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10941"; a="1111348051" X-IronPort-AV: E=Sophos;i="6.04,327,1695711600"; d="scan'208";a="1111348051" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by fmsmga005.fm.intel.com with ESMTP; 03 Jan 2024 03:56:22 -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 03/11] e10002: remove convert_art_to_tsc() Date: Wed, 3 Jan 2024 17:25:54 +0530 Message-Id: <20240103115602.19044-4-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: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787070368129700563 X-GMAIL-MSGID: 1787070368129700563 |
Series |
Add support for Intel PPS Generator
|
|
Commit Message
D, Lakshmi Sowjanya
Jan. 3, 2024, 11:55 a.m. UTC
From: Thomas Gleixner <tglx@linutronix.de> 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 <tglx@linutronix.de> Signed-off-by: Lakshmi Sowjanya D <lakshmi.sowjanya.d@intel.com> --- drivers/net/ethernet/intel/e1000e/ptp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/intel/e1000e/ptp.c b/drivers/net/ethernet/intel/e1000e/ptp.c index 02d871bc112a..9d8be03a9827 100644 --- a/drivers/net/ethernet/intel/e1000e/ptp.c +++ b/drivers/net/ethernet/intel/e1000e/ptp.c @@ -124,7 +124,8 @@ static int e1000e_phc_get_syncdevicetime(ktime_t *device, sys_cycles = er32(PLTSTMPH); sys_cycles <<= 32; sys_cycles |= er32(PLTSTMPL); - *system = convert_art_to_tsc(sys_cycles); + system->cycles = sys_cycles; + system->cs_id = CSID_X86_ART; return 0; }