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: 13748316 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C28A6C3DA7F for ; Wed, 31 Jul 2024 09:18:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:CC:To:From:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=bXELZViAFrOZ9hnA7vBmpL7uxyEmPDETiSR2rIar47A=; b=nmTUq2HIQJ6995dxiV1KDfV075 88lLBExJfAH1hwRVog2RbbFzfwfq5sEvbPMz1UxWfQXNU+AO7KJM96J/ckzCzXA/tmevTux+h0TtN y+Al+Nad290LL8OuPW/w3Dh6PXcDRTOxhnUoIc6IFNO3CBDmmvJzXtMnEI9Pcb03CXr2305IYE6D2 FIV/Q7joFXLBCx9kGDV3bc9Ndn/XPS2uffwMRs4Nqn6LmBxod3uFJZM2mUl5bgpMASxEJ3wDDKBVw gbS/zJrNRH2BCbcHzlTxpm/RfxOi4yANObGBCFI/RfA8JEX2cY5b1mWMFhNHcyS+3MP4YoriJuNtV kpOHO3nw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ5TQ-00000000SYu-2w3x; Wed, 31 Jul 2024 09:18:20 +0000 Received: from mail-dm6nam12on20600.outbound.protection.outlook.com ([2a01:111:f403:2417::600] helo=NAM12-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ5Rm-00000000RuD-4AmG for linux-arm-kernel@lists.infradead.org; Wed, 31 Jul 2024 09:16:40 +0000 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> 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240731_021639_066929_3B2A12A3 X-CRM114-Status: GOOD ( 11.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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);