Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp79355lqj; Wed, 10 Apr 2024 04:49:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVRnaFNnx2fq65ssu52V/sQFFeBIQF7F2jU8jq6aKvrL0NmZE0NYBV73PfPVahIgEqGgM6q+W1+oYHZ4VHmSj3Y61EEQEf+hUQPk8duZQ== X-Google-Smtp-Source: AGHT+IHXqbO2z/qX4ZzZx74VLPJ3pL3X3IkaQuYPjVGOsyqBHs3oUfQWU9huKy61N6Ufd2sldYc/ X-Received: by 2002:a05:620a:1215:b0:78d:6a6b:414d with SMTP id u21-20020a05620a121500b0078d6a6b414dmr4009716qkj.17.1712749784877; Wed, 10 Apr 2024 04:49:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712749784; cv=pass; d=google.com; s=arc-20160816; b=dULVeV7dz1iW8qScrY8gD4Px3s2s7tds/wxMXmZveSyERAih8LTIwm+kh7Q3Nth/+J C6j+YTlhNo3F/Q1mMvCD/agX4TubKj2O6k104GQnJ+hWlMWGfku73DJjfCChAZ2dnsI7 hfqB5Chlk25lhG6b4jwZMERHdyl6P4tN5rwbvF6vIB4A0ZbKMk0ztikGE0IiU15UR2rj rKpElyNX+MlkmTpq6sM+AP/6YOa5YpNGpjvtSeLdwbfhC4saiycFWRzsCafQTw9oGXNF H/Ve+XfXPWxvOXuR8h4LzmOxDiLoOBduIVDeb/Ro2K8pchVPfC0t+uG6f3QrYCnuU5jK xnFg== 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=9Ba0DaKzo2I1dMve9dlPa9QXf3otfKRHKeoWQOhs61U=; b=jhTnzGdLINdi6x1zajTJb6cTAl+UM+UC5ryRTZiVT4/1LZ1TqYfu4iac4n+U600bN+ ioepw97FE4+XbFGZ2sFiGZ7uO/Suy7/7KQhTS93rsOtVMlFvhOecPRCsRNKF/FTK6iHK uSHy1Zpgx9taZeMiZp62yVeBL4ld4/euRiTLVSioLxiVM4aAE96/2H/oOIt1srreSA9b 8vMlRQU/rRO52WFQE3DOvpqyx3YegA8ddcF2xykxkt7TvpKBxmZA16PSEjCzOfRKUHN2 ucUhKTlZzKYu2DoVyKvSKdtDrTnVYW2ZEfOjhjGRiI7IPSRJaN/sccUJFniCis96L2s8 h2Ew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OV8Lz07U; 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-138437-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138437-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 t15-20020a05620a004f00b0078d6634971asi6172925qkt.328.2024.04.10.04.49.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 04:49:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138437-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=OV8Lz07U; 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-138437-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138437-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 99D991C231DD for ; Wed, 10 Apr 2024 11:49:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5435515B96F; Wed, 10 Apr 2024 11:48:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="OV8Lz07U" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) (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 07EA915B553; Wed, 10 Apr 2024 11:48:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712749732; cv=none; b=uWAD9A3KIvbY9bhFtcj4Q0jeNnmt06JMOPcPzUaocR/icP1s3vBWptq+ZLK86FhSk5sww4AJT2cL4D2KK9G2D7P6s4EkpnmTXVXYYXpzOdiHwluVVxeww8TtxqCCiYACdVVnXFb6LamcF28d07O6xiQJ9DZFoIITGePgKkD7Pzk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712749732; c=relaxed/simple; bh=9bM3pFe73YGrSI7VbFylL5q703Z79WRvHVA5lUksMX4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pT5qP53LGikdAFcJa+1uhd4HShBMbZQUZvbVt67RksluZ4ZLAwKRom+RtHJvTdgg4LsPUf6pV67ILeDVs/7lGzqGUUJ9Mh7WbNDoA/1ixkx9Qi/9kg8k2yDc4MB88QvU7grpXSZCx68e9g78TdpCQWwkmS4MIcLRPrR8hNOZyjo= 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=OV8Lz07U; arc=none smtp.client-ip=198.175.65.14 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=1712749732; x=1744285732; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9bM3pFe73YGrSI7VbFylL5q703Z79WRvHVA5lUksMX4=; b=OV8Lz07UBX/MeizjGCoEtdOb/dINtLBJRz6mbVMRMp+4O74qGewMhmaK RyfcjAufuCUKSKcppS2yD00R1arCMoIzFTFyfRfmPyPZ/IqYf7LVmYYHJ 1HKPJ+kjmrrLcu5MzosDQG2X/X7uhwFtBD36UOkqCKUvR/pF8/I8weRlM GUjexsD/4b7qp333op0tLJZgzMELS08B1xaBeT74P7lCAlKCSmz0/7y72 bIeC17dpRsiE+3SryooNjTJw5UUpJMvf0mIyMFrAo+WEKojblqL76tJg1 ttVFBvKZT52seqYFFqi69Hg+wBTMoc3VshqT1ScdF+xwFbkBrtrBMhjH2 Q==; X-CSE-ConnectionGUID: v6I49n8tSlm+I21JQi8UpQ== X-CSE-MsgGUID: 0HyTkH1YSgayllOHYxiMLQ== X-IronPort-AV: E=McAfee;i="6600,9927,11039"; a="11944083" X-IronPort-AV: E=Sophos;i="6.07,190,1708416000"; d="scan'208";a="11944083" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2024 04:48:50 -0700 X-CSE-ConnectionGUID: QJH6IMdpTXu2SncDEgABkw== X-CSE-MsgGUID: gDsYZPgtR2W7s9Z7JzU/NA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,190,1708416000"; d="scan'208";a="43769245" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by fmviesa002.fm.intel.com with ESMTP; 10 Apr 2024 04:48:43 -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 v6 02/11] e1000e: remove convert_art_to_tsc() Date: Wed, 10 Apr 2024 17:18:19 +0530 Message-Id: <20240410114828.25581-3-lakshmi.sowjanya.d@intel.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240410114828.25581-1-lakshmi.sowjanya.d@intel.com> References: <20240410114828.25581-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