From patchwork Fri Sep 6 14:46:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gal Pressman X-Patchwork-Id: 13794312 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2067.outbound.protection.outlook.com [40.107.92.67]) (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 4110E172BA9 for ; Fri, 6 Sep 2024 14:47:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.92.67 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725634074; cv=fail; b=jyDItV5VM07MT0uyIBnn25e12SlNa4Voqhu0gXvv9YweL+CaUOKWKH71xBsBZdYeO0NcaOUGJe3hUgH32Ooyj0emObZj9WR1tNFn0BtNA2nok1xT9K2sn1ky10ng+dG1hhJEycmw4R+Rh5QRsd0f7UfKb5aIa55yV+y2/n+JyLo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725634074; c=relaxed/simple; bh=hG6Rtj4zT/RsZa8MmRZH3jmyYAUgTve3utzeXjLELEc=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=F61ziRsQEerBAUNZFZBBkegMINkEBbeie1X0Mfahnit2HZo7dQyOHgVpQz1x2kP3GA6KwZDdkpPQEAfEvq0I3BYfToCjduHKaSpasG6jqd1A3RoHL9ltJQqWgFu6jiG6d0e3qcq6eEfq4jLZFKlixaQ24StWxt8IoWB1ZmHC1+U= 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=URTC6JYj; arc=fail smtp.client-ip=40.107.92.67 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="URTC6JYj" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tAGl8i1yjxCoimdx8KARAveORXHUqJ7ivTnwoK7QZ3hNRU7U60f+ITCpryd1i7PFqP0JXiEovasYdoMTQ/hchvmBx+3LQV+UrO7MuGZY0q6kNyLhHIpzGk6Qsy5nLgfoPly4ICRrURR7f5EbMLAAIY/cZcATAUwtoTp91HUrKAOa8UGsqdjL7p+FaRWz9KSlmyNN2fAScSc0Dv0eObdpvqvUINrMxRGvPw2ymKHPAm8koWghyAgt1Flpz/l7za/fipwfP/oFSCcEEd2oo/SDYuPrPehj4v73OYKZQCNwQOcxuAndGYqLu7V16KrtfSWX62ECCbm2HpStN2svMFvhTQ== 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=6Cy152HuT5gGD1yarcfRz86ovri7kNtKhzteQhYXYDc=; b=QynLgkWxqNMP7ii7NMTnHSXNa2Cq3hGAA8eo0V47B1yKbALKRRh5BF/E6aDUwQ5RJhwI8VTpuy1hovoY77u04iyWpaSsQeeDqj/wOfrkWAebFICzJzc+wY0Fqnj+N/TuAR5I8C0VdfjI9h+sL3Ebr1wC8UYVG+124eAMXZskRq1cawLQo0i1PxGEGtb0lQzsdBGT2pLN4be6bQjU6h/2JY5XAsZneakQ3n/T3CAq903amEuuNdXPUg6U4ggo0nyvOfSLUBoWNoLo61l3QHv/Ic9n59+v3aMejAjvbVjlOVSk/1T7matBkcMqKyXJH5DeBJfvb75KnJVgqeh7QRKVhw== 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=6Cy152HuT5gGD1yarcfRz86ovri7kNtKhzteQhYXYDc=; b=URTC6JYjM9WjxMLk0eMAZzkUh4oZscaE3aG3FNSqkv2UyM3QlXbXJhahT/lTqbH8ZPCN+7/MOYYbaAnhfI+QyKsP1VnnAKw+2omtY/st3dl2hPMolfKbxCr9ANfDOM3FezmUzVLruXWTQENcKLV1QSFDJtSqe8UBdTsA5R0BNkY9r0fJ/oKmDV85wlTuZxX21kRV8WFa1nJjTZIcdd5KPsp3aLYlct/wC8anrd+THc3e4wi/PYJEvJHEzGTgfNKCef4nOsfKYhvTm8rVEy4wq68ByqKcajpP98G1I8NotiBhBFyUSVve3FwnnLCa0wIlWCksVh8M5JrYAXGwX8W2Og== Received: from MW2PR16CA0020.namprd16.prod.outlook.com (2603:10b6:907::33) by LV2PR12MB6013.namprd12.prod.outlook.com (2603:10b6:408:171::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.17; Fri, 6 Sep 2024 14:47:48 +0000 Received: from SJ5PEPF0000020A.namprd05.prod.outlook.com (2603:10b6:907:0:cafe::d9) by MW2PR16CA0020.outlook.office365.com (2603:10b6:907::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.19 via Frontend Transport; Fri, 6 Sep 2024 14:47:48 +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 SJ5PEPF0000020A.mail.protection.outlook.com (10.167.244.43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Fri, 6 Sep 2024 14:47:47 +0000 Received: from rnnvmail203.nvidia.com (10.129.68.9) 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; Fri, 6 Sep 2024 07:47:37 -0700 Received: from rnnvmail205.nvidia.com (10.129.68.10) by rnnvmail203.nvidia.com (10.129.68.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Fri, 6 Sep 2024 07:47:36 -0700 Received: from vdi.nvidia.com (10.127.8.12) by mail.nvidia.com (10.129.68.10) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Fri, 6 Sep 2024 07:47: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 Subject: [PATCH net-next 05/16] net: macb: Remove setting of RX software timestamp Date: Fri, 6 Sep 2024 17:46:21 +0300 Message-ID: <20240906144632.404651-6-gal@nvidia.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240906144632.404651-1-gal@nvidia.com> References: <20240906144632.404651-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: SJ5PEPF0000020A:EE_|LV2PR12MB6013:EE_ X-MS-Office365-Filtering-Correlation-Id: 6152d41b-fb82-4840-cd8e-08dcce82dfed X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|36860700013|82310400026|7416014|376014; X-Microsoft-Antispam-Message-Info: FoD/Ma1FEtPv2/kiC+v6HmNQdSqCy1TJcW3FkhC+lra3kEVWf+58G88DoCVVYT6OrTI9pbW2WF9NQXf0BBdmIXAsHcvXMy6u3saytnN1jxfBpEqJdDIgZtYklPhDGYpOLHtFewKOO1uB8B2D0LhzMUnbPZ2JZth+/hkTKa6/b1MOYt0kiQhBVF2/OPorPtnMcyp5Lq6uPpXAxbu/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KaQ6V5rqBw+6YyI17204BEFWLt5K+lXshk2DEPcSnqH8T9GdldH76DHRKhO65CUcKqraDAosxG/uJdxibyVokbP/yrY/btBfO2MW7VXYwMrti+lm2Z0NOxjCtUZOvY4RV1PS+eEMiVVKElvDflaQ6M5B07IMXYepLQfBzCUd2sCiwk+hlMGDvrugdpUl7FHaPuF 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)(1800799024)(36860700013)(82310400026)(7416014)(376014);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2024 14:47:47.6648 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6152d41b-fb82-4840-cd8e-08dcce82dfed 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: SJ5PEPF0000020A.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV2PR12MB6013 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 Acked-by: Nicolas Ferre --- drivers/net/ethernet/cadence/macb_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c index 95e8742dce1d..e41929c61a04 100644 --- a/drivers/net/ethernet/cadence/macb_main.c +++ b/drivers/net/ethernet/cadence/macb_main.c @@ -3410,8 +3410,6 @@ static int gem_get_ts_info(struct net_device *dev, 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; @@ -3423,7 +3421,8 @@ static int gem_get_ts_info(struct net_device *dev, (1 << HWTSTAMP_FILTER_NONE) | (1 << HWTSTAMP_FILTER_ALL); - info->phc_index = bp->ptp_clock ? ptp_clock_index(bp->ptp_clock) : -1; + if (bp->ptp_clock) + info->phc_index = ptp_clock_index(bp->ptp_clock); return 0; }