From patchwork Wed Jul 31 09:16:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Radhey Shyam Pandey X-Patchwork-Id: 13748309 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2065.outbound.protection.outlook.com [40.107.220.65]) (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 81BB21AB501; Wed, 31 Jul 2024 09:16:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.220.65 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722417391; cv=fail; b=ADm+MQUfguePa/leDR00m7fQHROx8K2OSwY9a3WZVCvoP9Bl15tsdRIbGoEIIZTVCRYGMGZ5wLXpc0I5h6VY7GSoiT8wzPIgBbAJu+zi+tGgC90c4QSGAgXEtor3pHa8yHxapU+ZdcGFsucW5Pm9PqwMeFigRCumqLSxhux/zqg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722417391; c=relaxed/simple; bh=bJ9N//TmP7s94AOZq+isXyeLdnlF0+4l1rjhwXMrMWU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=RDgUjWW3wAYwr3xeiNfsuDVdUWNncU+9irMXGWVcczpH62p2YIE2CBQtEEHGyQAKDWHzBK7mC3D72j1fg1iPtyplf5Qeoehqz5aCTU0rZUvKVmtQ+0aDZFRyhgVp/gav/8nyJho9o8DmJNLU2rYTy9/p4FpZOakYWF+dAOQNB1o= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=s1vGey0x; arc=fail smtp.client-ip=40.107.220.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="s1vGey0x" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=XEPsih3upT/suqYeX2W3ZqI2mTnoEJbU2IesmKieOTsLDag7g5Bu25+YKQTswNwHIkfKSfz+j2YqZhYcKkzFwYmzBoWwxFGLG1DHP98RHvf2QLZwNV7mePWBKAQPe3oautDeL7HIDqm5hq25ThndHnTqYVc2owhB9wEeYgzDH35XoTJC5DHqv4gu8uyqr7kUOtsZtt/H09bfvXsU1XE8baJw/xyNIgI59u8QSbo6tQRNu0LVUzU0iUf4b3jso5/iBpCcUuyioHHylIM+lyhRB+rTCV9GMPEUykS1IyZdDPdZZDpUSKAznl0OYBjVxDggFvb3LT1pVW1na6WXs5/aCg== 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=4RO7bJrGl/xzVJ91LxFCZoXeosBbl6GjncH/e8ncEf0=; b=EJ8MsNhO5V9olARYsLIulZzRwTAOon58we2RadTCBu1Svn81InEBJLQdkVX4vvcMK6t3B43FiAlkIciWXwXT65xgmpn/V/Ds1pfXi+vRFzapxI3wUVZKcNZJUxCZCeojm7KhNDY/V6juPTyKLCT6bgCNRqxQSy3p67nc7lrCXKUTz26rqlJXqBBMyHaP0X5ZlywsIisIL+5EJXTG2kTQMoCQDpzkbAT56ndGu1eSqs/49+TVhXxiuE4fWysxow7rFQK2ffyz60eee3zdpkvS+A3RpqDseo+Jix4dgdvCVtRadwCCqyeM1X3CWg6SNyJYdlGkpvYwcLhiigtbwEJ/fw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=davemloft.net smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4RO7bJrGl/xzVJ91LxFCZoXeosBbl6GjncH/e8ncEf0=; b=s1vGey0xVe6/2NeJo6QZi7Glv+BByPQvOAGE60qoW193Y3LhkPYJe3ADsbFJseNpkxHfRW3LgqAHeucTqxp8gilxqJI7y3lVDFz68VKC7dpiuUXZOyUU0C2ahdQ+uCNu6Y90QdqI+lo+jIYM8GbLcrT3TzoOuc7vRa626Iz4JoQ= Received: from CH0PR03CA0315.namprd03.prod.outlook.com (2603:10b6:610:118::15) by CYYPR12MB8656.namprd12.prod.outlook.com (2603:10b6:930:c3::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.28; Wed, 31 Jul 2024 09:16:25 +0000 Received: from CH1PEPF0000A34B.namprd04.prod.outlook.com (2603:10b6:610:118:cafe::7f) by CH0PR03CA0315.outlook.office365.com (2603:10b6:610:118::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.34 via Frontend Transport; Wed, 31 Jul 2024 09:16:25 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CH1PEPF0000A34B.mail.protection.outlook.com (10.167.244.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7828.19 via Frontend Transport; Wed, 31 Jul 2024 09:16:24 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 31 Jul 2024 04:16:24 -0500 Received: from xhdradheys41.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Wed, 31 Jul 2024 04:16:20 -0500 From: Radhey Shyam Pandey To: , , , , , CC: , , , , Appana Durga Kedareswara Rao , Radhey Shyam Pandey Subject: [PATCH net-next v2 1/4] net: axienet: Replace the occurrences of (1< X-Mailer: git-send-email 2.1.1 In-Reply-To: <1722417367-4113948-1-git-send-email-radhey.shyam.pandey@amd.com> References: <1722417367-4113948-1-git-send-email-radhey.shyam.pandey@amd.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Received-SPF: None (SATLEXMB04.amd.com: radhey.shyam.pandey@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH1PEPF0000A34B:EE_|CYYPR12MB8656:EE_ X-MS-Office365-Filtering-Correlation-Id: 26608056-86b2-4834-7468-08dcb141739f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|82310400026|36860700013; X-Microsoft-Antispam-Message-Info: 5kq7QNHWbmspGz+WyltEusd34y3WVv96AMJW0+Qt90nVQFthUMcW0A4lQs3F5/iMYOMQRZC8COVbFL+2nHor/K21oZZnzG2qLf3qZrLRhVN7f5bpNoI6GWnjBhHze0twHcP5XFRikZjfjMRH65DInj6w4kn3QFnqDomjT7QSWaiDATW2cZk3x1EP0CYi9+5y6BAmiDyijztTD+8ngMRH1sSIrnRw3ms3/bNAdE5JOuEft4kS9U96CSdjzR9XTZkd6K/loHBXpRyxHgGRpS6jkqJ3YvMzvgzIuKWSnk69f+irtsPNkOQrxWvqRoT5ZfXVX9s/44HJJeVM8BX39dSvdfRL7OwadnqgSoI0lFU6cCVbKdOwO2Q2+2mDPlihY4J/GGFyiC+9scFoSMnlX8z8Yq/3bFdpodxiXSKtDyMQHFXpixzjU5XIQ6JwbN78l6LS730yCebwpaz5vW/Zm2YM5qhkbZ+yZVeCRYInldndIs6yB24fuppRiOotGBtfUPPqZ67j81jj8wyvpttJTK5LipVgR68pULvsLV9MpGEsL6ohjCYkUe3KiyUKx8+lLy14ml1epeaSExeL5zHTrsfkB3rapHsSVA+7zVTCG93tOXITkN8RmCFj+Hug4A78HZWqp4nw+KZQM7wiCF0L00y6Xac0+hkMHY4HaF4D31oXhu82fmiIKdciu3j7PUFU8FSS3RE1vX6I+2brwtdbRUtlGqqqiRkeV9baWsZsqQL4e7SnMMJO27pWPG7Jj948iwgv/y+qx877mHlcmOxtO9Iyl8n23Kgzhg5De8JCWsawRDRut+WzzNQdhDJlH9F64nExb8EctvnsuzoJ3boinMaP1nwwEOhySIzuF4wgwzDcnvslonnZdga1G5waSRxDzWgN8OUiOPAexBclYtIgJ1AaL6BWAlqMiX7wP7O43BXp3ozfVj31GLs4Hj/TZnEXrS2CVB7MPovV9zJq4bdyuR99dYqhVlZQEQUF1xXDGkMNirm0KU30HGobaadRC26z1M/WBHd8Ct6HzIuz7brb7eqGScuyQAznJR1XQS0Gyj4FG6FtRxNVKQln+ftqRA7aKvETXWm8+HxWyp8bbTOg4CL2zz+Z0g/U0dkjKfsM7/luP9ljTfgmwbk/Wp4rXEvAaN98lXigU7Pm/YiAkl8KE/3tglMUR3IdxM4cc7EZeavDN4uiiRKpgSEeA5ov3D/uRBD8AoxReaceKM8kX2cnmDfvmXVnEY6+jJ+aox0RQzOTEAkeLrGpr3EaTxGVD4WyAiHRzSsULnIi5vMJZMw7Nlvacf848ZYSiCwdW1l4KV62CTsunVqgEc/AEfe/S5AmZuP3DxoYa7kVFpvvUlZB5XiqqsT78jgt+SX7IMjkv2TvJibnVi0IC1H48QnXHWcG+5XpiTo6i4LL7IWtgClfv/rOF/hlFh1kCF3WQEQwpe7f6v7Bx6/QFwdg4nTDCh+CDhi8 X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(1800799024)(376014)(82310400026)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2024 09:16:24.9807 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 26608056-86b2-4834-7468-08dcb141739f X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CH1PEPF0000A34B.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR12MB8656 X-Patchwork-Delegate: kuba@kernel.org From: Appana Durga Kedareswara Rao Replace all occurences of (1< Signed-off-by: Radhey Shyam Pandey Reviewed-by: Andrew Lunn --- Changes for v2: - Split coding style change into separate patch. --- drivers/net/ethernet/xilinx/xilinx_axienet.h | 28 ++++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet.h b/drivers/net/ethernet/xilinx/xilinx_axienet.h index fa5500decc96..0d5b300107e0 100644 --- a/drivers/net/ethernet/xilinx/xilinx_axienet.h +++ b/drivers/net/ethernet/xilinx/xilinx_axienet.h @@ -29,26 +29,26 @@ /* Configuration options */ /* Accept all incoming packets. Default: disabled (cleared) */ -#define XAE_OPTION_PROMISC (1 << 0) +#define XAE_OPTION_PROMISC BIT(0) /* Jumbo frame support for Tx & Rx. Default: disabled (cleared) */ -#define XAE_OPTION_JUMBO (1 << 1) +#define XAE_OPTION_JUMBO BIT(1) /* VLAN Rx & Tx frame support. Default: disabled (cleared) */ -#define XAE_OPTION_VLAN (1 << 2) +#define XAE_OPTION_VLAN BIT(2) /* Enable recognition of flow control frames on Rx. Default: enabled (set) */ -#define XAE_OPTION_FLOW_CONTROL (1 << 4) +#define XAE_OPTION_FLOW_CONTROL BIT(4) /* Strip FCS and PAD from incoming frames. Note: PAD from VLAN frames is not * stripped. Default: disabled (set) */ -#define XAE_OPTION_FCS_STRIP (1 << 5) +#define XAE_OPTION_FCS_STRIP BIT(5) /* Generate FCS field and add PAD automatically for outgoing frames. * Default: enabled (set) */ -#define XAE_OPTION_FCS_INSERT (1 << 6) +#define XAE_OPTION_FCS_INSERT BIT(6) /* Enable Length/Type error checking for incoming frames. When this option is * set, the MAC will filter frames that have a mismatched type/length field @@ -56,13 +56,13 @@ * types of frames are encountered. When this option is cleared, the MAC will * allow these types of frames to be received. Default: enabled (set) */ -#define XAE_OPTION_LENTYPE_ERR (1 << 7) +#define XAE_OPTION_LENTYPE_ERR BIT(7) /* Enable the transmitter. Default: enabled (set) */ -#define XAE_OPTION_TXEN (1 << 11) +#define XAE_OPTION_TXEN BIT(11) /* Enable the receiver. Default: enabled (set) */ -#define XAE_OPTION_RXEN (1 << 12) +#define XAE_OPTION_RXEN BIT(12) /* Default options set when device is initialized or reset */ #define XAE_OPTION_DEFAULTS \ @@ -326,11 +326,11 @@ #define XAE_MULTICAST_CAM_TABLE_NUM 4 /* Axi Ethernet Synthesis features */ -#define XAE_FEATURE_PARTIAL_RX_CSUM (1 << 0) -#define XAE_FEATURE_PARTIAL_TX_CSUM (1 << 1) -#define XAE_FEATURE_FULL_RX_CSUM (1 << 2) -#define XAE_FEATURE_FULL_TX_CSUM (1 << 3) -#define XAE_FEATURE_DMA_64BIT (1 << 4) +#define XAE_FEATURE_PARTIAL_RX_CSUM BIT(0) +#define XAE_FEATURE_PARTIAL_TX_CSUM BIT(1) +#define XAE_FEATURE_FULL_RX_CSUM BIT(2) +#define XAE_FEATURE_FULL_TX_CSUM BIT(3) +#define XAE_FEATURE_DMA_64BIT BIT(4) #define XAE_NO_CSUM_OFFLOAD 0 From patchwork Wed Jul 31 09:16:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Radhey Shyam Pandey X-Patchwork-Id: 13748310 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2051.outbound.protection.outlook.com [40.107.92.51]) (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 D75811AB530; Wed, 31 Jul 2024 09:16:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.92.51 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722417394; cv=fail; b=H413pBPGLZ4+CJ0jww7OXzK8nSZiNJllMKkfg+Fy+WOaBeWbC6ltciFRi4Bk2II0BI4W2BC6GLktYsYJIbGXB4535sFvWfhGEQTH+BuAjJEAm9VYkCyFNon/y0AOQWGyo5Kng+CKdofPx9IYUUvnMewy3hGcotTfhMGa2ZYH3YE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722417394; c=relaxed/simple; bh=xFAkEg+zBJao+xoXttgNPUvdT+wjLzXetGr6g+EqTGI=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=iT9sMrjeuWn6TKo5sZZD4/G6IrPuwBA/s9uA7ldX4dOTe6WJQXZ0yXfiI2jqX6GeoEpUD5rAbJOjGTE9dlywXzIw7tItKqGsxgNuRpLbtIm1mgrPD0FHJsf4/n8FME9Vl8c7MuCp6+OOd7uGC/vBFa5pWZPWSkQpRDIB8cGbyOk= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=TOdL37G5; arc=fail smtp.client-ip=40.107.92.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="TOdL37G5" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mYqZbX/F74fDToN0TzK8Z7L93jn50JtY3v+7HsunEMiyFXkMfui96WcFmPuLqUokvpfCkOe0EMb7DZd+voiaDJlGEYcec9jaqbM0LTDbYFX5t16D3JcJOn79fVSEshk44qhChZEuK1nYc81QliTXVT4J4E3sDyST7OaIwIZKTUOAlYnreUp4aS4qIrvC4u9iqajkclA3LFV6JComCTluAAHRcWOMC37it7C0+Xzz96CekzMlN3nYSuqPHlyBzCPPjpnSX2ArGyBi1emJyzpJWTDHHSpKNkGpMXjIvKiiSmXVgMIjKQ8BHpeSfNgcN90676LcNl58E/8xV+LusW49nw== 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=DRZlz8pfz0hpQ17yo6QgIE7HKBJNxuconVQPZB0LoJI=; b=MBTC+0CRX1FudbbmQYhC0zqhvirmrc+Abj7mMwsMwKYaO9z+dz3bIBcdk4XkmtkDafcv7dWBsPjKh9foKc6qFLYUMX4T9sliTYcZTqwndfsga/pQ/d7vpkOLyYULoGOhNCL/XNSZ73H0dbKpY5WYn9ZqmGMBMOVg6JuDNZNFvc1yf+RbJx1eacLpZoZLwqUSEPVFxB6Fs+ufd8JCsvtb3AgqF//DAovp3UUmN7kknhDMZ6kijaK/9nf5AJ9xXGda9JNn4JNYvQBXpG7hpKaju/SlSYzfsX2PVeDxe7rHiWKWVwZk5fd90jemtOwQnMpcwreq+FuXgJM9imr3qgRqFw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=davemloft.net smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DRZlz8pfz0hpQ17yo6QgIE7HKBJNxuconVQPZB0LoJI=; b=TOdL37G5JkXDaNgc+72jPhqk1lzhnwcCljgouXIYHz4hKJ3IVNVhF+6zCsvs0ggb1UTlckzyipsIQFAXvJCx568XbD1qpPBQozg4hv/YH9HAOERP6sV4tgQ0N65QpWJzB2oaU1+0UsgsNLJ3NtZIbrbkLkBV2ia+FP6JOaYa3ow= Received: from CH2PR10CA0003.namprd10.prod.outlook.com (2603:10b6:610:4c::13) by CY5PR12MB6033.namprd12.prod.outlook.com (2603:10b6:930:2f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.21; Wed, 31 Jul 2024 09:16:29 +0000 Received: from CH1PEPF0000A347.namprd04.prod.outlook.com (2603:10b6:610:4c:cafe::61) by CH2PR10CA0003.outlook.office365.com (2603:10b6:610:4c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.34 via Frontend Transport; Wed, 31 Jul 2024 09:16:29 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CH1PEPF0000A347.mail.protection.outlook.com (10.167.244.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7828.19 via Frontend Transport; Wed, 31 Jul 2024 09:16:28 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 31 Jul 2024 04:16:28 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 31 Jul 2024 04:16:27 -0500 Received: from xhdradheys41.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Wed, 31 Jul 2024 04:16:24 -0500 From: Radhey Shyam Pandey To: , , , , , CC: , , , , Radhey Shyam Pandey Subject: [PATCH net-next v2 2/4] net: axienet: add missing blank line after declaration Date: Wed, 31 Jul 2024 14:46:05 +0530 Message-ID: <1722417367-4113948-3-git-send-email-radhey.shyam.pandey@amd.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1722417367-4113948-1-git-send-email-radhey.shyam.pandey@amd.com> References: <1722417367-4113948-1-git-send-email-radhey.shyam.pandey@amd.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH1PEPF0000A347:EE_|CY5PR12MB6033:EE_ X-MS-Office365-Filtering-Correlation-Id: b2a63df3-0477-4279-f7e1-08dcb14175c6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|1800799024|376014|82310400026; X-Microsoft-Antispam-Message-Info: TEkEwX+DD2KkgFX4z5XOB+zHTNhD41Jl6IzDJNchE8FAyD5jEEnDzVKMv6mZZuo9f4HNAK0DdG/qGGLdbjwbErP7f5AWRunEVanU+IJqg7Q3AXDl6IP1t0YEo8UA0cVk8Q8oJfwYyRocEP+6o4X1bpmFC3DYTAezygPLRK72dnGc8CpEFE6DaOqXy8JTiEaGHZXmGHJgirAD9o1xC4Et4ABfnRtnhr497HLxK4/S0Ql9BWW7uR2fXPIV5wfWWOKcF8Bt7vLpyPRYV0GXfbQA5R7jXrqgKqierXoH7Z2tlj9h5qQVFl/8fp+miGNN6efmTm/owuI2cYd9l9a+5YkWn3b4md2jyopzxvVChOod2vPP9F/LCCN724I306r2s+jvZVhZ9YsrBA5klH22TgXwiEMO194vfkDIFDv0xi8xMJZJJ34Sg9ivTnXWprW7CY1PisN0er9267xOKmA5tLXOr7Y8G+QlrWlJWsCEVEm9zgkOXFPM5YpXR8PR7mIVG7uVQVcg7JMi2RDEjsTW50ob46i3VkmtIr/PN/pboq1qkkwgZMItL+NgGWIqygV34G3j0Q+gP0b5uaQ9XFCyUXYwzsBCbj+60PcZbMkCGq/p8JpyqaP7DMK4pY5GK0xME0Wup5IFkeCvkma8F/xEiUJYWaGGyRnT5BSwP65GiHdS5vlsY2YuIsINv1+3/q/6wpxpwTEuLbvntPpcFrDMTFfPGahdK3Bm92yi1HciFLubpAxkrubvAlXaOjULib+WPT2e0ZSdML29o7YALeJ1Pv4tbw8XCGgzpC8O5i/znTUmgzrR3Bw/v3S5s74Pnd8/xeZWh4zrCQkcxczR796ibvof4D4SGzZ6alo3ibyJasZCUZ7wkYMpoGwzmu5onJ475nP8QtTe2YK+C4XD1kqaeb+H1J5RXp7sGKpIT6/CBC0tdvsh0JsDhKTrfRbzGNxclh67vkUXCmu9VMwhSJ3fhcr+s6tWhXvF6Y/b5YK+q6vejegRs/E+wJY8H02HGodGSwgJORhDp0rpxWdCXmDD1PVgRsXiq+/7DHkIZlJ30ga3SnuoynIkESlVKSDVNlizAahIZ3kyf9goW1oHO+7YTjiTYYXPTslcyTdYU/q8imAAXOsMx3lwSRyquZuXUETcIyhTxWf2OSnh/zo8gKJwe+udLIxBrscCRE1HU85TV3ZxN9ivsRgRJ4Y6hMmnQU3OKlscTAnwNTbxd2Lt6BnXb/wWtFlwFvbjYMsEH9/faF/rXSUaRy97hiz62Kc4AwuH3pN5pcYnN7t+mQJ4vGSiYD21kTQ11ABPmhEeBNKqXWGxNrS8hIxksBaf4vjuzIMAprQQ2xMFi0jMuu5YgnUFAGYkBsiaz+bIPRx6TDxI83f5D2cIK2/E7BySxvjiz8LsPTVKOXxz5w9OKhO08+t8TsVOug9AifwGUhggAY1Yz06BzCC8Jl3OqVov014NK+WvIFzG X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(36860700013)(1800799024)(376014)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2024 09:16:28.5951 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b2a63df3-0477-4279-f7e1-08dcb14175c6 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CH1PEPF0000A347.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6033 X-Patchwork-Delegate: kuba@kernel.org Add missing blank line after declaration. Fixes below checkpatch warnings. WARNING: Missing a blank line after declarations + struct sockaddr *addr = p; + axienet_set_mac_address(ndev, addr->sa_data); WARNING: Missing a blank line after declarations + struct axienet_local *lp = netdev_priv(ndev); + disable_irq(lp->tx_irq); Signed-off-by: Radhey Shyam Pandey Reviewed-by: Andrew Lunn --- Changes for v2: - Split each coding style change into separate patch. --- drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c index e342f387c3dd..7a89d4fbc884 100644 --- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c +++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c @@ -415,6 +415,7 @@ static void axienet_set_mac_address(struct net_device *ndev, static int netdev_set_mac_address(struct net_device *ndev, void *p) { struct sockaddr *addr = p; + axienet_set_mac_address(ndev, addr->sa_data); return 0; } @@ -1657,6 +1658,7 @@ static int axienet_change_mtu(struct net_device *ndev, int new_mtu) static void axienet_poll_controller(struct net_device *ndev) { struct axienet_local *lp = netdev_priv(ndev); + disable_irq(lp->tx_irq); disable_irq(lp->rx_irq); axienet_rx_irq(lp->tx_irq, ndev); From patchwork Wed Jul 31 09:16:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Radhey Shyam Pandey X-Patchwork-Id: 13748311 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2059.outbound.protection.outlook.com [40.107.243.59]) (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 EA94D1AC43A; Wed, 31 Jul 2024 09:16:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.243.59 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722417399; cv=fail; b=adl7lvMY6keoTWdS1kilDhyGY2LYaFnVvg7ZqGL0AEbp/+bA8JyY+ePLD1qEaDNVG56+QFJ0eHxIQOScZA/w/8mnpdkHVLLc/guS07SPtzijNW9vh5ywEDf7zFe8t+BfbXXy/U/4xiTMNGwzogqKo/2OjR1CgNSTeqjUQUtPkKc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722417399; c=relaxed/simple; bh=nEJxcsk3z/+w7zN0PGKDwUPVkinSBftSMY4JGUUbfTU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=d6lxwfMk1E4rpBPyyWW8prA7vwmN9q/tkWhFY6Weq0WUsfA+7/7AC+W9jRLF3X+RMefAB1b+pALgLjn5ofGCI1h+93S/2STk8AFvhj/t5pFkcqZsZhCBfQrlu8E8eFOwH/FLjFaij5HuG9RQtDZkvAMHMrEnwfaEqaPBWUREnVs= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=xOF84qCh; arc=fail smtp.client-ip=40.107.243.59 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="xOF84qCh" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=GEMs86WPB4076jMgoHuKbLu3FC/GpZ/zidOZrn6GUhOMiKTOJIrs3QJWHGKnuXuOhSbpuoq9+8YrmVtCXw11BaruzgOrrARTpqvmfjbaMdoQPjazB42XcdDkcnKR2ennYALbu/SdghMTMD9kh9YSjz/nAXi3aanroSmb+BTZO/VLmMMPOWIYNsIa82c3hSZjqc2I6C8O1yC5q9W/txsY0GpLERk350UMWaZ0ObD9wveAH2t7ITJq82EobgdTvV9x7nx6N6AN4FgFr3HncfYACGVGaalf9Vz7vAFoq0RXf9GDSnvRPulQr2N+4fIEDx5ziKCVqUrt7ud7QjL2z9+dNg== 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=bXELZViAFrOZ9hnA7vBmpL7uxyEmPDETiSR2rIar47A=; b=rV0JaKNSA0hkOVmE8yzZ1qy9k/owTKig6ppqIejJaaxnXCNG9kg2fYSRSyMLQQXSVNeSiHozn3wxCu90w5RmmkQc03DDH37eDK0faKHEdbVMqHfpfRkAu5SZZhY8SvyP0NYm9s3s7154F69cMohqrc5W8k0WJ4/VMoqtZoFq2hEkgl1SPqUoY8A1lUcry+z1dnRc0CUu3nxW+/b2f2o7uWGS0kkSHjdS7TdYAylTEWMfI/VaNjKKHP/sU7wcWY6noAsnPsYs6czJPjfpf8jx2MhTCuaVNkAY2vxyZcPEx18h0AGiLD6eHeHRq7UtDK3MlTio0vvj30A6+wSaWjC4zQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=davemloft.net smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bXELZViAFrOZ9hnA7vBmpL7uxyEmPDETiSR2rIar47A=; b=xOF84qChYgbCBN6Von2GEqJZunmc1QBTGuaS7NdjqJL3xHwuFFuwXK52uTet/ddDSWGLbSoc6rfftMl1tonRdDrJHgr34FW0YDlE0gg9zbITmajvH/8t+qwn1FR1aySAODFGajWmMGogobdlvSN3PfKAp5m5xz0QrmMyDbdOwmM= Received: from PH8PR22CA0007.namprd22.prod.outlook.com (2603:10b6:510:2d1::12) by CH3PR12MB9284.namprd12.prod.outlook.com (2603:10b6:610:1c7::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.19; Wed, 31 Jul 2024 09:16:32 +0000 Received: from SN1PEPF000252A1.namprd05.prod.outlook.com (2603:10b6:510:2d1:cafe::85) by PH8PR22CA0007.outlook.office365.com (2603:10b6:510:2d1::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.21 via Frontend Transport; Wed, 31 Jul 2024 09:16:32 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by SN1PEPF000252A1.mail.protection.outlook.com (10.167.242.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7828.19 via Frontend Transport; Wed, 31 Jul 2024 09:16:32 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 31 Jul 2024 04:16:31 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 31 Jul 2024 04:16:30 -0500 Received: from xhdradheys41.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Wed, 31 Jul 2024 04:16:28 -0500 From: Radhey Shyam Pandey To: , , , , , CC: , , , , Radhey Shyam Pandey Subject: [PATCH net-next v2 3/4] net: axienet: remove unnecessary ftrace-like logging Date: Wed, 31 Jul 2024 14:46:06 +0530 Message-ID: <1722417367-4113948-4-git-send-email-radhey.shyam.pandey@amd.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1722417367-4113948-1-git-send-email-radhey.shyam.pandey@amd.com> References: <1722417367-4113948-1-git-send-email-radhey.shyam.pandey@amd.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PEPF000252A1:EE_|CH3PR12MB9284:EE_ X-MS-Office365-Filtering-Correlation-Id: dfcd3968-e68e-442a-522e-08dcb14177d7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|36860700013|376014|1800799024; X-Microsoft-Antispam-Message-Info: xFdxGSDksUvFTrFZ2o/L9eHbov4xPAQwQ6BURKjJX0W6+QWHhFMPSHYROUispOttNixbnfftOttWeTRxHAfPnx3/7Eebbc+B6xC7Qnb9XfmbKR/UxjIHckVBWI/1w8ZmOSSUJPh1746MLZLkEKXff+x4JHmOv5oaNlromeEGzPgYCq4eIFYoTQd47c3sTg3kMbO+Dz3OqFKgVk5aXHFGlI6+nTJtrXJjpseHUY5IlSMbzfaeQVT4KapZ3e0Rdg85ut1Li2iTSX//c2uXyGTq7buhBCERmjQ0LoRR71Q6OepXWucWdg+BBkoVmg+onK8Lx2Gzrnk8oVUGd5I3tch01M617EqoGFoA7PTZmkeUVs4ucquyiM0ygXghqoJqibUdYaaPFoecWqnwx25WdP0sKnGxhJHIVQPpbkD9cE99jve4ecxC921rv71IyVGwmRaVHL+yg09R1bSJbsyD9snAo79ZiSJoAUfkQ4f5NFp+ZmiRofJ4/YwwEMONAbSRRX94Rb/yQaMuYgX1Xr2BMv4g2VB1Uz1P8XajCoNwkej/tEYNhspYxIiF9u367FgpTLEds8wHZJrd90odZ1erk2KdxDAbe53EC3vYx2VrIs8oIgUncCrfM1E7dhSvw6ruTZtk0iw8Ezom6O0nOerK4jgh4MNn2Ojnqfx4iJ9hmJVXRFJQNO+LWwUqm8FNLno5Iwipkxgq863Ga1fF+y8/qpwfXYrgfzokMUs7JN8fYYLNZutZ/uF2hkvwVRWk3b0BB/PWNxT/XIdRav2mNjU7BVXgwNEebUKuwp/XGVu3S/ZWFVfIymQ2Ywen9rGmSxmUhHENFZxODX3yfOdLQB+wOzIRgGb4VQHxm4c4MyhDxeF662fHcgP9ANy5vId67ftcPdrT2bDk4K7sCh12cy5+wB0rDB17bznFjkDKP6kKcnrJTDv3gS7DtwR+DwrbFnxL37w5SqJjC398Bko8pMBGAAZxsBj5Obd80abd1wvUzktRM4zHVqdHM/5jtWUDrMzvH6zqNRT+/YzZYSacxKDG6eH5BA26GmhSXmVR5ZEPxZq1m3DGmAIAomAT8HAYa6cNJdCK3h78ZWwGF9aVwLw/w891aNcYLnqr19myIAlqSz/Tei0TIgYCcwNtpnlh0mbt9PyHPHNNusk98UD2HVZ60UVTw3NRs4/ourW8UBQwR004o1LOeZD0dzj1TZljOKcKPr0uyy+UNv+6b3B96Zp4ygkeX+c+EE6k4eC2LQjZ3Cf5p9BVulfrQyBQ1DaNSYO57Jy2kjhUKntAGcgLSuE691vufUgNld5f3y1PDVW2HdW1tCxoYucZ6Y+OcyvgVzevx0eQwMMO+BodS4fElt3cc6hY6QDg3ztgvtFLCMFe3hFhM2rOibtP8xEI0ErxG3R13EI0WDynIo8eTWffxUZVlGlz1tkSrxKhv86Tjaj7xRFDiKuzB1hvw8oP3oJq8CfNLAC5 X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(36860700013)(376014)(1800799024);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2024 09:16:32.0420 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dfcd3968-e68e-442a-522e-08dcb14177d7 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SN1PEPF000252A1.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB9284 X-Patchwork-Delegate: kuba@kernel.org remove unnecessary ftrace-like logging. Also fixes below checkpatch WARNING. WARNING: Unnecessary ftrace-like logging - prefer using ftrace + dev_dbg(&ndev->dev, "%s\n", __func__); Signed-off-by: Radhey Shyam Pandey Reviewed-by: Andrew Lunn --- Changes for v2: - Split each coding style change into separate patch. --- drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c index 7a89d4fbc884..f8381a56eae6 100644 --- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c +++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c @@ -1515,8 +1515,6 @@ static int axienet_open(struct net_device *ndev) int ret; struct axienet_local *lp = netdev_priv(ndev); - dev_dbg(&ndev->dev, "%s\n", __func__); - /* When we do an Axi Ethernet reset, it resets the complete core * including the MDIO. MDIO must be disabled before resetting. * Hold MDIO bus lock to avoid MDIO accesses during the reset. @@ -1577,8 +1575,6 @@ static int axienet_stop(struct net_device *ndev) struct axienet_local *lp = netdev_priv(ndev); int i; - dev_dbg(&ndev->dev, "axienet_close()\n"); - if (!lp->use_dmaengine) { napi_disable(&lp->napi_tx); napi_disable(&lp->napi_rx); From patchwork Wed Jul 31 09:16:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Radhey Shyam Pandey X-Patchwork-Id: 13748312 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2076.outbound.protection.outlook.com [40.107.92.76]) (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 EB3951B0109; Wed, 31 Jul 2024 09:16:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.92.76 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722417404; cv=fail; b=Em3i4IvzgxOGkVI/IirnDpe9K9qAZcEkDgoE+P1cetGmOkTkvBdxunrMebmY9qPaRvR/uuOxUU2q7v6QicaiUK0hZKWf1R23ofl2NM3YhkguVejHvY5SNxzsiSRLjsEFVF8/hSpXD+izCMHTlHheevgyWlKVE8YctlIc2AVXVDw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722417404; c=relaxed/simple; bh=0rCEVsXW5J9MYbMPjjA7+ee750RFxk3WebeG9k5GbF0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=uDSRdb4VjsFQWki/p9YRnn1VkeSOV/qF+d5sV0AV335L4zbuv3yIu4jcqpr72F1ymtYWSGK+aUVF74khReA6pCg7CSM5zOm+L+bThmwfzAW2cEGCPYk/MGzj/w3hHG4aUD5MBK1ZPc3Dv52HJUiiqk5FHqs5NlvUnzZ/NgH7sJA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=fMMbunLT; arc=fail smtp.client-ip=40.107.92.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="fMMbunLT" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Ew9WZUaoAnhQEtE391P4q0sNQTMkqSdfciuR0QPZb57EHdqy77ndCssoDbFVwCzaEVQIbARpf58WgTMuC70OACaUpyrvccxe4afWn/0U4v7FDCDZrvsdXODZajOZrCkhfJIWrObBxWfYy0FltLjqWKUnX/VjJlSAV98GcxVF/Fo8ydbtSTRqZJ6tpIoicL3XenZ9chesjqx/kNplosUVAbi5yW4A5q3gU8RrRlnN+XZW1iPskw5e6iXRQE/xqCZLJzSeMe9XylyRxrGkBX5053W7D5AVT5D5r96HwpNbPuTaDCBqmCqM/BKATc1buXMpC3MjP577TMPGb3iDgmLDxg== 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=Jaj+NLpO5nXP0Im3qi7TC5ay+Ez7VKwmTaDiDPUWJi0=; b=lf07fDMuEb+nNCB5uhPKP9OojWrJqf2+lIfN6wqVAHDXYPMRpLqS+mnNt2EXlHCRdyI7CIELWEnHlfOZbX7HRrEZRy1vgY2cNdIgHHZTDEem4LoGPG+lwl46cP5tmYfQllUn+Xu5liyEuRiwkeS2dB3KAqBvct8rmt1Ir6l2+xiBuT1M4pgu6wA6VZQALAgDtgr0SS1zmYtvJGC1e9LjeRHABPzoGF9skElFd6Swxy8Iv57srOb+n755I8cAblzo3zTgmtbZrqmnMtoZ51Rvsu2CngtLQuvyTbIemSqCVUWRS7zwuB5kN/AN3qKB848LvFA8Mm8SIbY48jsPpn6dyA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=davemloft.net smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Jaj+NLpO5nXP0Im3qi7TC5ay+Ez7VKwmTaDiDPUWJi0=; b=fMMbunLT4cLdeF9RrAzeQehmHFZPPBg0vkNkp9ulFpIJ9rYf8/tM3/CwveW70FhIz+nkecdNdRzXgznGWl7vkkS3X1OH4Eed3rFdh7aWAkWVRNelD8dsjKlyvEu4sFPIsb8Sgn6YCDbAhW36MU1thBB6idw3Oj4lCSp+XGvxkG4= Received: from CH0PR08CA0004.namprd08.prod.outlook.com (2603:10b6:610:33::9) by SN7PR12MB8129.namprd12.prod.outlook.com (2603:10b6:806:323::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.26; Wed, 31 Jul 2024 09:16:36 +0000 Received: from CH1PEPF0000A346.namprd04.prod.outlook.com (2603:10b6:610:33:cafe::63) by CH0PR08CA0004.outlook.office365.com (2603:10b6:610:33::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.34 via Frontend Transport; Wed, 31 Jul 2024 09:16:36 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CH1PEPF0000A346.mail.protection.outlook.com (10.167.244.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7828.19 via Frontend Transport; Wed, 31 Jul 2024 09:16:35 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 31 Jul 2024 04:16:34 -0500 Received: from xhdradheys41.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Wed, 31 Jul 2024 04:16:31 -0500 From: Radhey Shyam Pandey To: , , , , , CC: , , , , Radhey Shyam Pandey Subject: [PATCH net-next v2 4/4] net: axienet: remove unnecessary parentheses Date: Wed, 31 Jul 2024 14:46:07 +0530 Message-ID: <1722417367-4113948-5-git-send-email-radhey.shyam.pandey@amd.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1722417367-4113948-1-git-send-email-radhey.shyam.pandey@amd.com> References: <1722417367-4113948-1-git-send-email-radhey.shyam.pandey@amd.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Received-SPF: None (SATLEXMB04.amd.com: radhey.shyam.pandey@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH1PEPF0000A346:EE_|SN7PR12MB8129:EE_ X-MS-Office365-Filtering-Correlation-Id: 305fedc2-66a1-4536-3d53-08dcb14179f4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|82310400026|36860700013; X-Microsoft-Antispam-Message-Info: CeHpN6HV6dA1rqc0QbJp10y1jZi6vvvzGJIFeG0ZwYnvE1hDfiOItwdz50bkSINwF9Qg2yRuuBCKd33HtwatsLC9szHIbR4JcNwMe1MST3K0YWzomVG6vCvNUs77wyEFFTIZ9W6Gb/2a4MwMspJ7aDL8Xn4uHhhlfqWaXpAzkWtm6EDMSoRuM3QXG50ZLxD6PQEN4liGblGOW3x+hhSqB56lJu99GXUMiN11xiEDGIJulQR65xhNZ9sfV+AbB8kvbxxCVKaRgRYEJYk7HPY6BpqAO+HHGFvlVCTq+YwENyTRjco70GMHMCL2m44gFM/J06g8/Y3nfkBTEqwoXj9Xyr93sYmbz8lU7sHHBEiVjprFDVKa6vp2QvOQt+Iam82pdQWR3l4KdLYqLwKqCdwRL+xIZ58MijV+81zPV0uGoM4amYIdUDFZrAZelV/fpNiljxUrPezIMwQYbOrm1GCauGA06x7EEGZIIGiaI6qDOnKxIkl7Mt1V0G07G2E7NB+AqIlYcaBm/h3bpyc0XJGmJ5Z3gwL69ygQilZUINLCVUG+s9nmYlp061YcTJowqlgZpJcp6coeLddU37maLLdGOayRwWQKbE7tSdTO6UMNdzGbnscvWW7ctqBQa0xWq2xDm7cUb/l/hlfOTZT1m6bOxIBVEudJTIsUrt2pD5R9bgASrPTEtp1Q6i+NvkzvOwdJCbp48F1fIJrN026yp1u8jNh2aDGDGJ5uajbOwgA6rjEbHBUmChNaCDwVOtlW7ObmU6l0atq2fm8QRe5ydMwZbLoCb4cyisPlZYvyRjvxt93WxU30GTVDeQbYmB1YgWar8CSahKLDckeElcCoiSQ3gKqFE++wR5vrQhlBXW9FVkT7gm632Inxp8pN0shfVrAd8Ytb1yd/4GH4CRFhZWZ7ftmD7UVaO8wUWlpf5/cO6A0o4lhVD8I2ju/2HV7CwZlPH6JFW0YJuh+0oFGZz6JLGfuFAWcGODztLpbcYg/H0f1s3SdOEhFmqAHn+jIQZLWynIkhfc/lp69YrxyskDhacqsIxcLfUZlyJqe4FflmINwGgsJq3NJL434yqrh+r67T9fn3U96mm7Kz2RVJyerenVrJl9ipUsQ78Xq3LLo+JKHUPWSsLxvvKQBrjo2WzXXN/WwEC0BXFKHKhyheQmhQRupKYfh3pDxbMfXofn2PrGJsbQnbj4Hhds8gqYjksbivIOE8Z3JQfqKHMIOPnS10e/j44Y6X/syAlr88lzlHxq5lQDIF4AvUzzVVrxwa9X1OL3oTKn3amKK9GckUzsZk3KF1MtfJU37yhpHRu0paBilrTTmXzSIfzWEbhwX8Wa9Psibd1X360KZEY02pSAqqqFovDF+gsuGzr/u4QcbTs+hhfAG46U0LFD3Hu4ikt+I40JJMrKPzPDWJWzd4FmVxzdBGMx5XHp6RYC6fiZXsSAQukl0nC18ZYnU4A7dZi+H3 X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(1800799024)(82310400026)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2024 09:16:35.6026 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 305fedc2-66a1-4536-3d53-08dcb14179f4 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CH1PEPF0000A346.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB8129 X-Patchwork-Delegate: kuba@kernel.org Remove unnecessary parentheses around 'ndev->mtu <= XAE_JUMBO_MTU' and 'ndev->mtu > XAE_MTU'. Reported by checkpatch. CHECK: Unnecessary parentheses around 'ndev->mtu > XAE_MTU' + if ((ndev->mtu > XAE_MTU) && + (ndev->mtu <= XAE_JUMBO_MTU)) { CHECK: Unnecessary parentheses around 'ndev->mtu <= XAE_JUMBO_MTU' + if ((ndev->mtu > XAE_MTU) && + (ndev->mtu <= XAE_JUMBO_MTU)) { Signed-off-by: Radhey Shyam Pandey Reviewed-by: Andrew Lunn --- Changes for v2: - Split each coding style change into separate patch. --- drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c index f8381a56eae6..937d02a819d8 100644 --- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c +++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c @@ -614,8 +614,7 @@ static int axienet_device_reset(struct net_device *ndev) lp->options |= XAE_OPTION_VLAN; lp->options &= (~XAE_OPTION_JUMBO); - if ((ndev->mtu > XAE_MTU) && - (ndev->mtu <= XAE_JUMBO_MTU)) { + if (ndev->mtu > XAE_MTU && ndev->mtu <= XAE_JUMBO_MTU) { lp->max_frm_size = ndev->mtu + VLAN_ETH_HLEN + XAE_TRL_SIZE;