Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1951342lqo; Mon, 13 May 2024 03:40:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUoomGZoh37vILmFqjkCpYz2fSqdHUOWMKt00tOokyeDUixVtXFfu0RP8LDKWTZ9ak+q6ksfshU8k+1+GE/zeffMHtYBQvzZLfED6+jhg== X-Google-Smtp-Source: AGHT+IE+QeWKujvx1TrNAW599dYniNLyiVoWy4QUeqFxulduyrWmtkZ/2+bfElcBugRmRD9zLnNR X-Received: by 2002:a05:620a:12ca:b0:792:5b7a:ad58 with SMTP id af79cd13be357-792c7577082mr1065060285a.8.1715596811730; Mon, 13 May 2024 03:40:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715596811; cv=pass; d=google.com; s=arc-20160816; b=j4Vy2LRzP67jiMhPkgejLbXgtssB9WSKIvvDtqcGlV36TrQTSsCgmtDIcxKnxHoD5b VyCy8eAS7uv/GiSEAWj/Mgv7CV0V0nM8rtiupN7Ghkjw/4K7t3oO1kLO/ldMA9U6nfgX HYNd7Wc1khZGyMfQXsjopAUpQMmXTbbAYZ3kibYktxhnr/zMxTEScrfjx7fYiITbeQdP Pq9KCTYEkqWhqIaqKKnPxx16IwICno3aQsK+SsGzAfzwCKg3WUzvtcC9Wx5wote8ETb/ ey7YyFTRiMROBsmwaa0m4qAtSVg2r+j1bcAtLr+vhx+8L1xo+g6XlsBNFkTFIln/xbvV 6ttQ== 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=tMPUlS4YEE+oHAoQeWsNKk1VyiFax659EBlOgW6s3lc=; fh=9Ba0DaKzo2I1dMve9dlPa9QXf3otfKRHKeoWQOhs61U=; b=M3+e7COBnPRQibm53lk2WDXakA2N1LW0uGl5ZC0dkCyGya4CQeVvf1v97khrmH/CGO 8RIU1PBHNIHLA3l/WZp+w2MpQU+CRAL2UNAUaj03VULi4XXfWwy+wZAUvsv+9Y4ECtJB MLkFhn1qvFvOVtH3GceSLpPyyAmNRFK3+QIB2FY5hOzH00Fj/bS95gVPQp1M8ieVL46H lsiplEaoH3qYO2hOzNRpGNWgNC2bIVCHJ8vlOskRK+qYEMtmjD1lCOES25pNxhvml6oa 3rKvihOKnh9MUUIcMcA6fgXr2bI5OCX2bmkuAFNGs6OFuMnTs0wetHAj3WhIzrmHYtYe FG8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=d0YrU538; 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-177463-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177463-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-792dd8a7f13si233761385a.618.2024.05.13.03.40.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 03:40:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177463-linux.lists.archive=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=d0YrU538; 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-177463-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177463-linux.lists.archive=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 761761C21F80 for ; Mon, 13 May 2024 10:40:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8942914F9D1; Mon, 13 May 2024 10:38:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="d0YrU538" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (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 3FF25149DEE; Mon, 13 May 2024 10:38:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.8 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715596735; cv=none; b=pwf11uNTDPSHUgH8YGVlsqqxJN1foPWwXElWT9zCdJBNjy/dQu0l49RvB12lJbxBzcYHRVKwXC+LkzeDTjKQOOx/2fQ7t4ePgTzVzX/kiHw623TbZaqBlxFa5P1ggAqLXxJbD+i/8rMrwTY7jiC2zQm6ioNt0TbXTImKIn/xzkQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715596735; c=relaxed/simple; bh=HhiHRgci3Va8aKNan0May3SRjgE/9ME923IgJ2nLvxI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Ubvfyg2Fy51Fg++MTXOJnoDPSkS2aPqf1oJRZFe5QW0gtAjorK886wUWVdUdVuUwuJhW/uxAkpnOg0LTrxDpd3hRHHs8MbwCbFt/TMEIoOkhLDf+Pgt+KNHKY9eBUmEE32BmXXLbCKPCZ2wwKrrhpGws3c9EJ0yJah3705wDF44= 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=d0YrU538; arc=none smtp.client-ip=192.198.163.8 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=1715596734; x=1747132734; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=HhiHRgci3Va8aKNan0May3SRjgE/9ME923IgJ2nLvxI=; b=d0YrU538n2Q1B2HXkUUCnj0pNUdDsbuuflNQhiVkaDHFvjP3/JorL/Cz wgBLUPIlu91S+1MVydNOVvsLP7AFWAQVoTr+EQK7hhvFT2dsn6ZNA0Dkt omktXoABYjp9wx4xq69BNsVcMFl4L01LyPcMpkcfK8JHYKnPj8B1n9EPt 6SdO1h6u8iLbgXpTjLJq2sHYjWDa+ouMS+WIhuDs151d54RGDFYDf9aZk +2Wz0drlEdlouGGkgAxUnW0MuBGw7l3sStdZMry4gguCP/NZLBhuA9UWL ZB5ZtAW3tOMQdy6fCZUjOInY+b0HDRyQt2Eqc1rn4VbR63a6aFoh0ty0Z A==; X-CSE-ConnectionGUID: 933oikuGQxqPedtbjb+3gw== X-CSE-MsgGUID: 8hnZI219Rp+Mx6yUDXq3uQ== X-IronPort-AV: E=McAfee;i="6600,9927,11071"; a="29039002" X-IronPort-AV: E=Sophos;i="6.08,158,1712646000"; d="scan'208";a="29039002" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2024 03:38:53 -0700 X-CSE-ConnectionGUID: IrimfoOMS8Sxdz/oMmatpQ== X-CSE-MsgGUID: DXXVjDffRS+WuYEAdRtTJw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,158,1712646000"; d="scan'208";a="61481734" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by fmviesa001.fm.intel.com with ESMTP; 13 May 2024 03:38:46 -0700 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, subramanian.mohan@intel.com, thejesh.reddy.t.r@intel.com, lakshmi.sowjanya.d@intel.com Subject: [PATCH v8 05/12] stmmac: intel: remove convert_art_to_tsc() Date: Mon, 13 May 2024 16:08:06 +0530 Message-Id: <20240513103813.5666-6-lakshmi.sowjanya.d@intel.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240513103813.5666-1-lakshmi.sowjanya.d@intel.com> References: <20240513103813.5666-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 Content-Transfer-Encoding: 8bit From: Thomas Gleixner The core code provides a mechanism to convert the ART base clock to the corresponding TSC value without requiring an architecture specific function. All what is required is to store the ART clocksoure ID and the cycles value in the provided system_counterval structure. Replace the direct conversion via convert_art_to_tsc() by filling in the required data. No functional change intended. Signed-off-by: Thomas Gleixner Signed-off-by: Lakshmi Sowjanya D --- 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; -- 2.35.3