Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp854101lqt; Tue, 19 Mar 2024 06:07:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVwgaV7i12HOjNzEACPjJ2wiv+7pLiFam13M2cRB34vV3NboS2ECbpjyckpoxcpfw80kGNT16MnOtmtM3hNirSeuHtMqUPfaMaovqmKhg== X-Google-Smtp-Source: AGHT+IFFjKhz0+qMYilzOni2119w0IA0Qhw8H18ouOcvUpls4T6ml9aUJ8CheoMcgebbvWFIThNy X-Received: by 2002:a17:906:e208:b0:a45:ad5d:98ac with SMTP id gf8-20020a170906e20800b00a45ad5d98acmr1748694ejb.44.1710853648874; Tue, 19 Mar 2024 06:07:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710853648; cv=pass; d=google.com; s=arc-20160816; b=OSvLOFhhws/7d8eApyJjU+d5u+kokw0CVbRskoK25sIJBk1+Pn6dTUDCi+6O+1djLD j9lcQWEsptUPt+PI0SZAHZHyhdTFa/HZLGqxR6cdEd6WqE864DoxR8VJOW+XZ0EByGhV HomNO+YuNKP5JhJbdDNz87mMy6VebL1PJIeYxKtaMzd0kVon6ymlOFvM2Tz0NHFPFTUx aNi2tgQvmc+Gn2qfWF2EcBnXUuR1hGGC7W3OGp3kg8K9pbj4p64phN9jVFU3JOCG9RDh 5ZH5vl/Pfh0TgzWyhYVT90L010owuRLoZPsDsC0NgwpUruPhumM8Olee9yVP6SfhBKBn b2xQ== 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=Q4FnrLrs9MFBQANCWt/hHLlfiWEcHo3QaAbd3iVCI3Y=; fh=CGg6k4pIc/rgUymTUfzOJIVXiUSHuw63GXmrBxA2aU8=; b=zc/Kl3Tcza4AsVVC9G1J7XEo5/EXO7ZvhXeXAtH6OTPzSNWiVkC2XorcT4rAfgIBii Bnxku58TEWRgiIPQs8y9lj/gznLbeala3gkkAmgY5OP8WuGmJSYWzYzebNDauRofOgfe 5Ml/oOngH+/YM4K2mWN9JXrGKaZSoOyJ1QbBwtk4V/03zYQG5jqlqH/lYZWXmryK9/TH 9OvKtu3xOiYICGmFotUiaZ0CJO/05BnS/3voj8cc+5O6OdssNeIzvq0Pq658yikn8Z7R fESE/uQvr7vwAfGx5h2hwvO9xh3SINQzr7SvQ3EHaY/VPUjL2R+/eh5hQX8ok5stM2rg YBWQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QccpJyGN; 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-107558-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107558-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id cr21-20020a170906d55500b00a46e12d208fsi538132ejc.808.2024.03.19.06.07.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 06:07:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107558-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QccpJyGN; 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-107558-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107558-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9A5F51F213A3 for ; Tue, 19 Mar 2024 13:07:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ABCD280C18; Tue, 19 Mar 2024 13:06:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="QccpJyGN" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (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 4DBFE80033; Tue, 19 Mar 2024 13:06:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710853578; cv=none; b=KsF7Xbir8K9kwgTfQ3rw6nDMUiwkljEfvExEDSR+/a3VcOMNL34C4BBcch6WvNCEW8nbjYKzNxVKc6fp2JP6hhbkZvgmR2T7llVysBilkIcMplmlSmLfrfIxV1nfJcgu4lJ6yxM+YXRvYhx5F5ySSj0oVEAxcNH97Q4G1K4QtFQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710853578; c=relaxed/simple; bh=9bM3pFe73YGrSI7VbFylL5q703Z79WRvHVA5lUksMX4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=qAQUgCKgps9bncOjrPYlZ0nnhsRMXUU9OIaQ/tbsKDTcX/sEXdyeEJbaXvVbcae/FIiN4N7uGhpMgerrVG1HCCSkWbrQHnljIQmuRD+CGlMSwYWULVUvFJCjAfjum6//l/KQN1WZzReG0v5HaFsatRxZ3IEXEsm166whcQ8TiVc= 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=QccpJyGN; arc=none smtp.client-ip=198.175.65.16 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=1710853577; x=1742389577; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9bM3pFe73YGrSI7VbFylL5q703Z79WRvHVA5lUksMX4=; b=QccpJyGNqfLSbSXu+yuXH1iY3mknNbT1VJva3TiKUSyBHrGoBqlvWPD5 UmMcQeZEdm2RnAQwtIIWukQHd5I5vB0Q634pwq5X2+GBU65NzL/43jhaO SZLzSspjSp7k45hRQKdHB1CxB2ii1mWTb/7GRjuhqifGkr6HwX0rKAtOA 6FHc169Hcx9ZPka391twGDweN5WFxqvzPcxRABs3F5XqcqruK8n79gJ3z FiwNqM6JGvpt9cyaTDADmHPUrMNH8fi8s4WpA0ibPZrrh3pCFH0EtXo8E LlmtuOZpI91utMhnDSK/dVTAms3VfKT8EM5Wm1kWfqGH39/ITw6CIKM3f A==; X-IronPort-AV: E=McAfee;i="6600,9927,11017"; a="5842929" X-IronPort-AV: E=Sophos;i="6.07,137,1708416000"; d="scan'208";a="5842929" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Mar 2024 06:06:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,137,1708416000"; d="scan'208";a="44883198" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by fmviesa001.fm.intel.com with ESMTP; 19 Mar 2024 06:06:09 -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, mallikarjunappa.sangannavar@intel.com, subramanian.mohan@intel.com, basavaraj.goudar@intel.com, thejesh.reddy.t.r@intel.com, lakshmi.sowjanya.d@intel.com Subject: [PATCH v5 03/11] e1000e: remove convert_art_to_tsc() Date: Tue, 19 Mar 2024 18:35:39 +0530 Message-Id: <20240319130547.4195-4-lakshmi.sowjanya.d@intel.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240319130547.4195-1-lakshmi.sowjanya.d@intel.com> References: <20240319130547.4195-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 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/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 bbcfd529399b..89d57dd911dc 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; } -- 2.35.3