Message ID | 20240207060854.6524-6-lakshmi.sowjanya.d@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-55998-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp2031581dyb; Tue, 6 Feb 2024 22:12:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IFsBdrf2rAKuW5z6B2j7n18Upy9X4nIuc/Y6xt1G8UHSTAWeon9ypgfbPl2oPrJfQuyh9P/ X-Received: by 2002:a05:6a21:920e:b0:19e:9c34:f369 with SMTP id tl14-20020a056a21920e00b0019e9c34f369mr3585231pzb.16.1707286348660; Tue, 06 Feb 2024 22:12:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707286348; cv=pass; d=google.com; s=arc-20160816; b=sNS530mJfpFvuhZR2Q9h7mmm3siLr2koJOEZ8pmj2dxxzcDd6gVnJ3YQYi05nOWm9e Wb5TDGEp97zvi4VgFG2mkVv+GHV7HwKKkk0crVcIrTYjAqne8Xyn1I90Y52YOqEQgZon 0Tt7QcvZGXEbqdLxUARLVBFuCEHhHcB1A/gybQ5BGyKgSazWh5Q56t19OY+Fd5/JwgZQ PuvNNyw2pa4BV0JuTSFeG0Ib1pi/A1mJ9+HKLjDsWXNDaUgxd69rJeDGzNr3aPPY6jg7 TerMXr0pfVT59+Y8tKcVZ2+ai9gqa74Wclv/pqWx3wTs7gCy89m5IKM2UQECHURTxAgD Zbkw== ARC-Message-Signature: i=2; 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=cTf5hXDLUyErqXk6ZUX5pNE1MT7LG5qTTMaE4QySQNc=; b=Ch0lqefR7/x2R3uArnqAkoGrXTMOr9vHeqHi3eWuR5mg3ES/+sVUARJ8Ox5v+wIQLr tgApDZdX9TXoCV5pCBEgiu7biSKKgdkAzijdOVX5JQM4K4eDPCy+znnXyJ+WR/fTtjaI hBuBGuh+Js0/YJoQ2KeDWTlPrLebgs2KD94y35+hhzP1Rxgf13aYWuBurAUsYwmW4xg8 c20BZAjGEVS7gbeV/Q4KqT7oXIHb6w9xN5qROVk/VtSADphZUGvQloQ/uxxrrRZgRxqg bkiwKPTZfNNo3Lyt3CPejccBjxrbdMB8azL+iRcMLCgqT5k24gRPypv19jgcykGy6Ju7 EyHA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Sz7nWrtd; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-55998-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55998-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCWSUwzPzrT4Sm5+7gfs2MIp0LGQZBLmb0MSic8apc38V5ym897AEIMOQPQgPsRxogxbDHS1aa0ml73mmG2k97By3K9H6w== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id x5-20020a170902ea8500b001d7307a0423si798352plb.485.2024.02.06.22.12.28 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 22:12:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55998-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Sz7nWrtd; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-55998-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55998-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 2553FB27E17 for <ouuuleilei@gmail.com>; Wed, 7 Feb 2024 06:11:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8114D208A7; Wed, 7 Feb 2024 06:09:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Sz7nWrtd" 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 3303E20313; Wed, 7 Feb 2024 06:09:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.55.52.88 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707286177; cv=none; b=YxwZ3xzn1sd7i6M7AtSRGYPqNq3mwYZD8Gdyd2z7YUiKAl6xVdJKjB82WcySz93nBUxnm70niabpLeC9eIO6W0FYqhl/1owLrmXEE+XHsikDsyUG3lGMZrp9xOqbpUv2xeb11kZtKEXJuNxEzGW7oGh0tvkTjKFGkKsZckqTrFM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707286177; c=relaxed/simple; bh=uUU6Aeoh21pgVprRQuKox95GRqR5aTWn9mMsl4N1jcQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Ip7Mi/U3O6RZF+FoCcLmXcUe18uJon5jWTodNRh92djVD4/fb0VJ9FwHwFDEf2ltWn7vZ9ODevJr4WlXFlK6G0xSS1fiWk9KxVT0121XQNjs12mjVYsiK7UfFmf8sfPNSdwS01bKjiYzzVWVqK12ktFz29Cdpc8rcgwwmevhdpQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Sz7nWrtd; arc=none smtp.client-ip=192.55.52.88 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=1707286176; x=1738822176; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=uUU6Aeoh21pgVprRQuKox95GRqR5aTWn9mMsl4N1jcQ=; b=Sz7nWrtdL2qfhOFQuxpX+3sxMLFYbvNQMvdmJpjoWJLjl6Ego50JLFhR Q6Su2jccoq8twx7j7KHfHtMrGPERlTtb3px5TOga63ew+7n6MgNcBeNfY dkhziGALkRw5kmwBga5LlLIXzJX0fUrUN7OYcHTp1LphgbG4IdnvvrPFs 2Gir3aQOztw3oo/P6LLKkTA+XfIhfwC56dkJgd2bcO/UN/NJwXeMQSTEc bvH5Z7r/QMe2fe7JyqTYG6DiLYcv8AI45UNOVyGoqcqYRWoyRQNcxHURX 5ALVVsjQMEEV69+7palGHuOLdzprY7pURwDxhjcPvnyBXEIK0OtKxgVz6 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10976"; a="436054002" X-IronPort-AV: E=Sophos;i="6.05,250,1701158400"; d="scan'208";a="436054002" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Feb 2024 22:09:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,250,1701158400"; d="scan'208";a="5849788" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by fmviesa004.fm.intel.com with ESMTP; 06 Feb 2024 22:09:29 -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, peter.hilber@opensynergy.com, pandith.n@intel.com, mallikarjunappa.sangannavar@intel.com, subramanian.mohan@intel.com, thejesh.reddy.t.r@intel.com, lakshmi.sowjanya.d@intel.com Subject: [PATCH v4 05/11] stmmac: intel: remove convert_art_to_tsc() Date: Wed, 7 Feb 2024 11:38:48 +0530 Message-Id: <20240207060854.6524-6-lakshmi.sowjanya.d@intel.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240207060854.6524-1-lakshmi.sowjanya.d@intel.com> References: <20240207060854.6524-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: 1790219490159709895 X-GMAIL-MSGID: 1790219490159709895 |
Series |
Add support for Intel PPS Generator
|
|
Commit Message
D, Lakshmi Sowjanya
Feb. 7, 2024, 6:08 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;