From patchwork Wed Feb 7 06:08:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "D, Lakshmi Sowjanya" X-Patchwork-Id: 197756 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp2031536dyb; Tue, 6 Feb 2024 22:12:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IFoaACt2Z2aidyIUvH7okGd1zgWl0XqXIeEeQQkhuHXPAWRShHBS/vS+x5S8NIZJzkk2Rhh X-Received: by 2002:a05:6358:528b:b0:176:40fb:e123 with SMTP id g11-20020a056358528b00b0017640fbe123mr1901422rwa.5.1707286338213; Tue, 06 Feb 2024 22:12:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707286338; cv=pass; d=google.com; s=arc-20160816; b=hDMNX0fSz7iTsUuCSsePeY711zQ/tB6peiK786TrOTM9aJ8Re/PRbm+68yI5yWJ1pt Wu/IqhfYTiaKLgZzuj9stR9yUG5GH++LIhnubwCAB3m403F2CBWLU9DHzEtv8+D/0Efl 6zM3xSGsW2xOTrddt9AM7JSbHaBPeRAiULG8VO0bEl2Qe4BnDGtxlO1WbOT0UleUrHJO 2Tq2p1dhGL65mbcF2eKVFmNUr94VRHBHwXBQPXUnRy0JTti6NBzATHzgdTl5yz2nT5BY ny4dap87rPCrvdrM7ISuj/B+yf4uWzeS5Tu4yK7W63krCh9UGseY0eOyd+7qobvjUdQh EFqw== 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=T7N1fL6c3qpJ/euIKukZsyS6B5nxXU+Kxr4k1JyagBY=; fh=EuUh5F0SdLghCUIIUDtTEWWqedc7XOBGncbpNa1tU9w=; b=RQ6nlfDSv9Q3WJZ7t56tMN1zvWl/+Y3Wl5dG2Je4DXGwa9RXtf0lvCkYAzTtDDA9cs cF7LPJC7LT/RVgLW2RN3hPxicCVs2bxcCb0XsoFN1UEdlMMgvgI339u/1pm9Ai8ytSI6 Q9glp69pC2JN8krrvtEt3LSy5dbth2pGo7U1pauTGYT22Qa6PXIZ7BQE7K2mFKfeChU+ ZDRlZC2hA4e6gbCHBc2C25L1e0siUT30eDIYL4Ht2vkjWJYn6JpQ3x4X0/5H4jvMcmNW sFkmxgeIqYdRnhfKZqHUxB4jpdWO5T5QFhrRHTFj628RikrhtM2SXEtTCJKXnXRJSTjC zxYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=h4qqeLTI; 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-56000-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56000-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCV+VV7wwFcLLqWGd0FxagME7auUnP+LxHSG1t9SHhWyuvGtOxD0Z9HhmvQ2leNmq2cHyTiy/ULfDBQJfKhHmFEhDLVjqA== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id gu14-20020a056a004e4e00b006e045ae9ba7si801501pfb.173.2024.02.06.22.12.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 22:12:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56000-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=h4qqeLTI; 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-56000-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56000-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 EEA7B28706A for ; Wed, 7 Feb 2024 06:12:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C674620B38; Wed, 7 Feb 2024 06:09:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="h4qqeLTI" 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 6E859208D1; Wed, 7 Feb 2024 06:09:49 +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=1707286191; cv=none; b=MltZkzoEj7h5dR3WB+4SpxiwEAvGOrb1uD3h65PF2T9nNkvMnMiWll1v1kfSzIESS6boMis45jFWyixfhtXBsnwuSviXexTT53zOkyCJBxr8SDlFRnDHvYS3nF7PxOHBpvV2p8QXk9CHfUb/wCyRcy41yIDpRGHw4wUcuU7o5cU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707286191; c=relaxed/simple; bh=ts9UT2ntYUOZBJlItohtQOI0E/fFKNFBPAIy0JZJFSY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pDEjzhH6oNizCc+cnmzhX2pIJQVcGEUs1JQGkVO7GKN048haLr39g4Z+lX6ZqETSneNbCnUmVP3Qk6/IBtp9pIGYZ7FRCbc2BZax+6UhFNBFti6mgo0zDLXNGDSoHF46Z6XVjsEQASkQjDEycCNDI3d5d5KCthbkbHNzJdohy4E= 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=h4qqeLTI; 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=1707286189; x=1738822189; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ts9UT2ntYUOZBJlItohtQOI0E/fFKNFBPAIy0JZJFSY=; b=h4qqeLTIxEZn5wAbu4yZAiWprgIgOucYPm2vmIPwwdUPh5FpTGZX91Hj cYE7ixlehBRTdix35CppXfwUWQqqvY3s7pyOnHdK5Tk3s7A1jvvwfNgRN RkoShRl4H2mSjs1QUjaY4UiXsgZyAgaEzmHcVC/Xqb/kpZK4mandmnw62 id/x3tPZ2TGiKAvAIZ/7RKKLlEoI1Cgn+iIcz5AqfuHKw1sj2blEF/FEH Zkrg2nNNU17FQjCgZedvrc1BLMfusM2EmXUbVt38d+XaL0qoJNE4a4ll4 coL8aOFpifguUQENZN8LaCqCj7o+FJgFTRK+Kk0jX1ifP1DoUf/3i8fKc A==; X-IronPort-AV: E=McAfee;i="6600,9927,10976"; a="436054034" X-IronPort-AV: E=Sophos;i="6.05,250,1701158400"; d="scan'208";a="436054034" 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:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,250,1701158400"; d="scan'208";a="5849830" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by fmviesa004.fm.intel.com with ESMTP; 06 Feb 2024 22:09:42 -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 07/11] ice/ptp: remove convert_art_to_tsc() Date: Wed, 7 Feb 2024 11:38:50 +0530 Message-Id: <20240207060854.6524-8-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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790219479465882767 X-GMAIL-MSGID: 1790219479465882767 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/ice/ice_ptp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ice/ice_ptp.c b/drivers/net/ethernet/intel/ice/ice_ptp.c index 3b6605c8585e..104b3f7a7cfc 100644 --- a/drivers/net/ethernet/intel/ice/ice_ptp.c +++ b/drivers/net/ethernet/intel/ice/ice_ptp.c @@ -2101,7 +2101,7 @@ ice_ptp_get_syncdevicetime(ktime_t *device, hh_ts_lo = rd32(hw, GLHH_ART_TIME_L); hh_ts_hi = rd32(hw, GLHH_ART_TIME_H); hh_ts = ((u64)hh_ts_hi << 32) | hh_ts_lo; - *system = convert_art_ns_to_tsc(hh_ts); + system->cycles = hh_ts; /* Read Device source clock time */ hh_ts_lo = rd32(hw, GLTSYN_HHTIME_L(tmr_idx)); hh_ts_hi = rd32(hw, GLTSYN_HHTIME_H(tmr_idx));