From patchwork Sun Sep 1 11:27:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Gal Pressman X-Patchwork-Id: 13786397 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2070.outbound.protection.outlook.com [40.107.95.70]) (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 0EC5C76048 for ; Sun, 1 Sep 2024 11:29:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.95.70 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725190190; cv=fail; b=EKCbZ5pse8KUxvwZu6/VMhmN83cEUGFuu+Br4OOd9kPOV4TPd00TD0r2kgiF1OJvQ+oet+r34JUO/0qzSSgzhaWWxvG96/T99/F+xvk1ilkw0a+kd+IQCXLOwagmOF6/RSoDaYx4okLq42rNsJPT9Lh1Zn/xnqcqy4Xn2cdV67Q= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725190190; c=relaxed/simple; bh=onSM1wiAnmeb37QTG7VnzFz5yFlaBRAfG4o+iqqxXAs=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=XidtUMvnf3jYNqqUHjmSh4SzAn+HxnlSlDcNw/Ut4OmCiBBW0mv/l5z7GLMaIsAjR+5a+2pjMKRU4B94tX4jU15xUs8CWNn3tOrA/ZUCdI0QUaX6+FnYHksTkPk4ov8d3jLl5VlKY+jPQsOtYb6hORp7uffGETzl8crq2FH/9jk= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=T8/UmaIG; arc=fail smtp.client-ip=40.107.95.70 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="T8/UmaIG" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kIknfR/EI7EmaJIqL6mOXLjLFcORSVexN3Xev55jys9zvhGxj3aU5dFND5FpX0/2bINk7kAerXYxN0l2uqrQ6iDDxO3r9cHC0NSG3nSxqgUD20PKEVZ88FN5x6StkeWx6QmeyIh70Lhd3nFAVX2tvftMG4BrjHbe/+Nnlopsqp8vv9csX8xFMfO4AG7LwfkVgMuW1kcRYkowaAdtOpZt7Boou+C0/WuejO74MWuRs8ilRMghZVSHDbT3AuvPyMkZXvt1xJ9W9TFeKwN2VH2eUklSE9sO1pxeTp19V9umMKuVoGz2ra9+utcuknqextmA3de1vUyH726IWg1GzpPESQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YNfVUjNyhT7V/VCS0BydOJQscPUylUArvmPuPAoK2+g=; b=nutgt+WLu1ap12g1mHU1VjV8eRlmvcbQbgFX/0nA9aS4G3LNHV5Fh0iiJtbHG2eCYjK96WHDmWkGskEHuEVCMYsmXfs1cj28ngRRVMPKC6GhOmaz1fM2VSH0tK8DQysqzcEHNJ3pTMNpGVgQA7UtiGnBzSKpkh4Ir205cDOaojsfW3rbCQkU9kQQ9XSMAdj3bIF0l97jJaKJIp/UkqXAbyohVAmJn0hqhYaV6M/7gcxjNU4DjXMLxsLZZDuwsKQbwiSBlgtHYRhKqT9inVOi2VDWUZQcLLX+RTmaF352QS7DpqlE4l9kXXi6ZZP9rnxlhY07kSWkBQsLE11CsklMOA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=davemloft.net smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YNfVUjNyhT7V/VCS0BydOJQscPUylUArvmPuPAoK2+g=; b=T8/UmaIG082XNMXK68uoxSAAvsoOtTnBxRGm8YHgDHMjTUTbhJz2qk2VHd1FwxsALTBZ6AdB7BqO9LnrtcwhGMzdvvDDmIas17mPjRRAWaBfFQEZfROgWG+CNhNGpBCrUfhOZuM03UopKhfFN9yHCEha8Hx7gW/PRHUYms2JprQcXOtdJ/RVfeQtfHBMPzGr2sUBoAEGy7QNwihi9k8nLBTxe021mbejsnVN/R1W8bJ6v3TSdtSyYOqe7l9i86q2ArGDzSsZzwicyRUishMavOoNF2MhiARw+762Imo26465WdHoDPCY2VgkDJDCDIiEFwiSd0cV0gkYM7wlGQ3GiQ== Received: from CY5PR13CA0012.namprd13.prod.outlook.com (2603:10b6:930::23) by DS7PR12MB5888.namprd12.prod.outlook.com (2603:10b6:8:7b::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.23; Sun, 1 Sep 2024 11:29:45 +0000 Received: from CY4PEPF0000E9CE.namprd03.prod.outlook.com (2603:10b6:930:0:cafe::55) by CY5PR13CA0012.outlook.office365.com (2603:10b6:930::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.23 via Frontend Transport; Sun, 1 Sep 2024 11:29:45 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by CY4PEPF0000E9CE.mail.protection.outlook.com (10.167.241.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Sun, 1 Sep 2024 11:29:45 +0000 Received: from rnnvmail204.nvidia.com (10.129.68.6) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sun, 1 Sep 2024 04:29:36 -0700 Received: from rnnvmail201.nvidia.com (10.129.68.8) by rnnvmail204.nvidia.com (10.129.68.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sun, 1 Sep 2024 04:29:35 -0700 Received: from vdi.nvidia.com (10.127.8.12) by mail.nvidia.com (10.129.68.8) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Sun, 1 Sep 2024 04:29:22 -0700 From: Gal Pressman To: "David S. Miller" , Jakub Kicinski CC: , Jay Vosburgh , Andy Gospodarek , Marc Kleine-Budde , Vincent Mailhol , Shyam Sundar S K , Sudarsana Kalluru , Manish Chopra , Michael Chan , Pavan Chebbi , Nicolas Ferre , Claudiu Beznea , Sunil Goutham , Potnuri Bharat Teja , "Christian Benvenuti" , Satish Kharat , "Claudiu Manoil" , Vladimir Oltean , Wei Fang , Shenwei Wang , Clark Wang , Dimitris Michailidis , "Yisen Zhuang" , Salil Mehta , "Jijie Shao" , Tony Nguyen , Przemek Kitszel , Marcin Wojtas , Russell King , "Geetha sowjanya" , Subbaraya Sundeep , hariprasad , Ido Schimmel , "Petr Machata" , Bryan Whitehead , , Horatiu Vultur , Lars Povlsen , Steen Hegelund , Daniel Machon , Alexandre Belloni , Shannon Nelson , Brett Creeley , Sergey Shtylyov , Yoshihiro Shimoda , =?utf-8?q?Niklas_S?= =?utf-8?q?=C3=B6derlund?= , "Edward Cree" , Martin Habets , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Siddharth Vadapalli , Roger Quadros , MD Danish Anwar , Linus Walleij , "Imre Kaloz" , Richard Cochran , "Willem de Bruijn" , Gal Pressman , Carolina Jubran , Rahul Rameshbabu , =?utf-8?q?Niklas_S=C3=B6derlund?= Subject: [PATCH net-next v2 07/15] ravb: Remove setting of RX software timestamp Date: Sun, 1 Sep 2024 14:27:55 +0300 Message-ID: <20240901112803.212753-8-gal@nvidia.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240901112803.212753-1-gal@nvidia.com> References: <20240901112803.212753-1-gal@nvidia.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000E9CE:EE_|DS7PR12MB5888:EE_ X-MS-Office365-Filtering-Correlation-Id: 9b7c4233-5b87-4a55-1077-08dcca79615e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|82310400026|1800799024|36860700013; X-Microsoft-Antispam-Message-Info: =?utf-8?q?O7+P7J+KeuBEUKCG2VlzO4jPVm14gXt?= =?utf-8?q?BCPZjpEcALVAibjQ9ROKAdvmM2SwsvEy1clyW3MargX5cBAIK43mzmgPFKL+ZHyij?= =?utf-8?q?3He075/CrwZt7o4TjEIkbD3weUvRlB6vhB8swUj/fP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/OiwOuFyTPe9KWY?= =?utf-8?q?+pywiFcDvlpWJ7yOSlNXd/gFGQKQju1QAJJGp5aqU/sv3rK8G1GpXfTe1C/iwA/3/?= =?utf-8?q?sPyxPWuxokQg5LhXzB85G1T+QwnfGhx0353SpMTUmELtIOICdqwbOqTwAGs6FEaln?= =?utf-8?q?rD4cBOs92gnu551lCDftlEQ5cHLj8Y46dMILTLHCPYIQpfi+rtSo+lFh5cbpSlXwa?= =?utf-8?q?i5zD13d4JwffqMIAoEoqn4TdYPmQcKkGgpJTTkuCG/djPDKoHJD+LehJ9s2kvTMa8?= =?utf-8?q?932kTLA4OkxWWlE1esNKWkNOx058a+4Mb3LbOG8cPEhdUop/+515D4JmwzXPo9izO?= =?utf-8?q?G9IErKdKiZoPft1dOzGlav2fMKfk7QEu5bkAW2HiK5jHMOk+PcCJGKClhRkjfTjs2?= =?utf-8?q?x8zsokv7QIp?= X-Forefront-Antispam-Report: CIP:216.228.117.161;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge2.nvidia.com;CAT:NONE;SFS:(13230040)(376014)(7416014)(82310400026)(1800799024)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2024 11:29:45.2238 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9b7c4233-5b87-4a55-1077-08dcca79615e X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.161];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000E9CE.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB5888 X-Patchwork-Delegate: kuba@kernel.org The responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers. Reviewed-by: Carolina Jubran Reviewed-by: Rahul Rameshbabu Signed-off-by: Gal Pressman Reviewed-by: Niklas Söderlund Reviewed-by: Sergey Shtylyov --- drivers/net/ethernet/renesas/ravb_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/ethernet/renesas/ravb_main.c index c02fb296bf7d..c7ec23688d56 100644 --- a/drivers/net/ethernet/renesas/ravb_main.c +++ b/drivers/net/ethernet/renesas/ravb_main.c @@ -1744,8 +1744,6 @@ static int ravb_get_ts_info(struct net_device *ndev, info->so_timestamping = SOF_TIMESTAMPING_TX_SOFTWARE | - SOF_TIMESTAMPING_RX_SOFTWARE | - SOF_TIMESTAMPING_SOFTWARE | SOF_TIMESTAMPING_TX_HARDWARE | SOF_TIMESTAMPING_RX_HARDWARE | SOF_TIMESTAMPING_RAW_HARDWARE; @@ -1756,6 +1754,8 @@ static int ravb_get_ts_info(struct net_device *ndev, (1 << HWTSTAMP_FILTER_ALL); if (hw_info->gptp || hw_info->ccc_gac) info->phc_index = ptp_clock_index(priv->ptp.clock); + else + info->phc_index = 0; return 0; }