Message ID | 20240103115602.19044-6-lakshmi.sowjanya.d@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-15473-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp4970680dyb; Wed, 3 Jan 2024 03:59:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IE9nwXFJD9oM/50o+hcttKZ3fVpnUa56Is4qFxgXfcQsoDNkNQCfrKA5GIT49wQ3iJ75p9A X-Received: by 2002:a17:902:d4c9:b0:1d4:5ead:b700 with SMTP id o9-20020a170902d4c900b001d45eadb700mr14594384plg.30.1704283140946; Wed, 03 Jan 2024 03:59:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704283140; cv=none; d=google.com; s=arc-20160816; b=wryPxwbgDrxzSn2WTYNWUkXzEBk/TFSMLEpGzgZqNWc5PEKYhZtTWeiD/nxqMBKs/P h9frLNGwsBMQAG5EUhd0iwtU/oIdH366kcuw8aA1AjoaytbRKvufMy7ibTkJukNojkPl 2TgJvcD2uMRf8Ye3btTJyY2IodqZihrUlBIB89srvVBKycI5tXlTvy786F+EVeb1fIQC aN3oRf5DeqX+F5R7Tbo5VpX3i+9EgIMln3TMDkcip5nyc98i/1VTtpGf8XL7mc6y8Sdm tQzb9EfPDtxKYgHiQi77GJUo7kX3V9fXr6VYcaLGbeFBrD+EAW3GlWO/9fWD9eJxKfrB PCXA== 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=qbDf6mDOr5pUTTrGJy5r3HxwSzx5reuigJeU16xqtBs=; fh=4NrVLy9e1N+ecgT+cYXeaYo3IQFJO3N8B6ul/oSBUd8=; b=MsKG/SfYqUFefOyZadYkxsNSu9mh+NWWKiQi/R9o/FW8VIif0DXG7d8+j/PUbS542H BZmzNwRNtd3BRV1EU3JwAD5AcrW9Ib5HP4ADFpcFi1c4ufvp/azF1dXKm4McYB+DF3KL 6BOWBLMYAdNs3FiKVBYSPSy/2Fs/rc36S34xsdAmwtboYmCAg46kw2hbUeH0B/OEzPDH aZ9toliDP26wwCWj/kAVjYv4l25sWibCIaW+FK3LvPriQ7omb0YgM4zwDJLVNyQu0KUt oH1Xfm0nylcrAPmMm8SMHRXMfattZtnd3qU/h7ggP/J5EfxmrVj8Lmp6Hy71/AglbcEy tWeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YvX9s4Bh; spf=pass (google.com: domain of linux-kernel+bounces-15473-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15473-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id a11-20020a1709027d8b00b001d4b1c776c4si5480559plm.376.2024.01.03.03.59.00 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 03:59:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15473-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YvX9s4Bh; spf=pass (google.com: domain of linux-kernel+bounces-15473-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15473-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B1DA8285276 for <ouuuleilei@gmail.com>; Wed, 3 Jan 2024 11:59:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE05F1A5AB; Wed, 3 Jan 2024 11:56:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="YvX9s4Bh" 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 DCCC718EAB; Wed, 3 Jan 2024 11:56: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=1704283008; x=1735819008; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=uUU6Aeoh21pgVprRQuKox95GRqR5aTWn9mMsl4N1jcQ=; b=YvX9s4BhIIrfnwiiXiUSTSd9ON1+2DxaaQ15amj47ZNuWsaebkrOL0gD C77ewvKKlv2+hfQ63RKGW9mNUVjqKdmkpU1f1sny7l74XQlTb79QpRfG1 SI/N+OsDyJj8Ud3X9almYPKqsvoDYX0xYtpiTcsX4kD27X91OOMUpFwqh xBjhwvt5TV6uhDde2SSV7g9AmPeknasCnwHn/rNTHoKQGFHjjfAO1d/6Y OqLeZ8I409VK9AFSTKp3JQ4zH0hlFgQ0RCK6Q633H3X42+lD0OxqAwydq H9dGEzxGdD57wBidey9KTKnAKPLE+jvk4T8ZSKkln1cf6cIkAmeGk7PfK g==; X-IronPort-AV: E=McAfee;i="6600,9927,10941"; a="428169515" X-IronPort-AV: E=Sophos;i="6.04,327,1695711600"; d="scan'208";a="428169515" 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:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10941"; a="1111348081" X-IronPort-AV: E=Sophos;i="6.04,327,1695711600"; d="scan'208";a="1111348081" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by fmsmga005.fm.intel.com with ESMTP; 03 Jan 2024 03:56:35 -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 05/11] stmmac: intel: remove convert_art_to_tsc() Date: Wed, 3 Jan 2024 17:25:56 +0530 Message-Id: <20240103115602.19044-6-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: 1787070398516561492 X-GMAIL-MSGID: 1787070398516561492 |
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/stmicro/stmmac/dwmac-intel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c index 60283543ffc8..e73fa34237d3 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c @@ -390,10 +390,11 @@ static int intel_crosststamp(ktime_t *device, *device = ns_to_ktime(ptp_time); read_unlock_irqrestore(&priv->ptp_lock, flags); get_arttime(priv->mii, intel_priv->mdio_adhoc_addr, &art_time); - *system = convert_art_to_tsc(art_time); + system->cycles = art_time; } system->cycles *= intel_priv->crossts_adj; + system->cs_id = CSID_X86_ART; priv->plat->flags &= ~STMMAC_FLAG_INT_SNAPSHOT_EN; return 0;