From patchwork Tue Jul 18 09:09:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Fang X-Patchwork-Id: 13316907 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 F3DC3C8C4 for ; Tue, 18 Jul 2023 09:16:04 +0000 (UTC) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2040.outbound.protection.outlook.com [40.107.13.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CA02E69; Tue, 18 Jul 2023 02:16:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GCWfMop4TYUuwnCBVSqpBsMg+91WnN+cLwxQrVzofEwZzZGUSM5U3awBBY7/hDYCLXGbkyAzVw4/Vj0QeKdl75WbBjJ0/97h3mpkfyYRzCFitJrCYwzFWvPPcztjEYsUsXjSSlAXaO9rNi+8a/3xhsa0/VJLgRfEI3XWuxmy4frj0EDC++cEMfXIu5wEH+v69pTFr31pYb/gIluqy/nwdnQQ342ZW3HPa3yBp6mhKVBSS+zX8VhwVnH+QfJCofvGcdOd8lGZoYDwxE72KFzM81FzFueIJGOBTWPZ3yPGMe0os3NfV/L6HjVBpFBpE0DLRXr8827qSCoM2uUW9ZOBUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=RJbX67dORhUPujL0u4b08LmacQ1LjebYntkswY0YM0w=; b=Xu3al1+H2EKFIHUb6cHBJCNIBI3qJfPylwJ/HIQAXNIyjpQIFA8eZgiTm2jL/uXw+MUPqLxlsTG5oYbv7/LvK9vnuEdvNZlfG1jhM07SGKsjfTbGB353DQl043lUzA05KFvq+RcYvco/aL5Jwm49TxRqHuIvk46am/nvXmx85S0LQGvYlQMRnCghoygwESqHDWWIs4fEVAQQhcWQ9ZeCQTm5xNw29FPHggsKq3UGmx7RIRLFm/r/ESgYDzV5KKLwo7ukQ2zAUS4aqwZRUeArwTNnFyQfHUkVrd7R8Tby55PUz7KkhCkE9Z0C/20Yk0BZ1yKe3S3r5af7tU8cZkNkow== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RJbX67dORhUPujL0u4b08LmacQ1LjebYntkswY0YM0w=; b=TNcxkwhvTENEnu1qRgLERf8zDutyWG7qhHGHoSRv4KqsM1TMKtOUxZ/BemVi0Dwmerfx5irt/dfzpEt8xpnOciloM0X+I6U0Wo1VpR26s27lhcxAViyZsBqOun/Tzw/Z6GxQUzxxEPhocZNG2f09gIlgk58xovSGXWIySTYtcio= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM5PR04MB3139.eurprd04.prod.outlook.com (2603:10a6:206:8::20) by AS8PR04MB7832.eurprd04.prod.outlook.com (2603:10a6:20b:2af::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.33; Tue, 18 Jul 2023 09:16:00 +0000 Received: from AM5PR04MB3139.eurprd04.prod.outlook.com ([fe80::2468:a15e:aa9b:7f8e]) by AM5PR04MB3139.eurprd04.prod.outlook.com ([fe80::2468:a15e:aa9b:7f8e%4]) with mapi id 15.20.6588.031; Tue, 18 Jul 2023 09:16:00 +0000 From: Wei Fang To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, xiaoning.wang@nxp.com, shenwei.wang@nxp.com, netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-imx@nxp.com Subject: [PATCH net-next 0/3] clean up the FEC driver Date: Tue, 18 Jul 2023 17:09:25 +0800 Message-Id: <20230718090928.2654347-1-wei.fang@nxp.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: SI2PR01CA0034.apcprd01.prod.exchangelabs.com (2603:1096:4:192::9) To AM5PR04MB3139.eurprd04.prod.outlook.com (2603:10a6:206:8::20) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM5PR04MB3139:EE_|AS8PR04MB7832:EE_ X-MS-Office365-Filtering-Correlation-Id: 3f3040f4-9ef0-4add-4a9d-08db876f9a25 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: m2ncb8i9gN7NUl0OsYUyBNnKMaJGqxNfRLeaCSM3P54PfqE6DtUYYD/SjYCKHuWFInsSUMqGR/GwlC9xJG/1RyWGfry2HML93LpTo0qmFDe5zG6YmH/q07DpS51KHokszxUhLwtkcUqP7rycWMXPnOoNYTAEMw2AgYqJPYRJjx4lXKWWEPmDzjcu+mNdmTQF6C935x09CfPsWDR0fNHaXxInlbi4WQUtt079H6LtgnDwPT7gURGyPO4oDoJcIpYqGxk7BrBlvr2As2YhMO4AYXw0lizbNij18WQY4OhqHEtvN/k+jst8Z15KTngm/gvE5qcgBMBr1VeGCLuJWPVGTetbKK4T+io0zXgPUTrwp6cRaeOwPEg8DGpht+3o/Tp1TDQD5KoDQ1eHGW/5P8zZna+kez6EL0BmGfjFTJCn+eyoUceV20c8B9V7Obn5NFTXj/XgVK01j2wsBZdGNJ94ZnHmJ+SSXD9rPzdosdrvQLdUUTIMtTaKxw8XgIHmDC43pDvJrAaAhqN9RsW8C65v+uOohaOH6f1dVzC09MuR6YDrmPNddkoi3tM3D5X2sfYKOlfmx394KRHtvaR/vt2aVsp2eR3mM3T17FFs7B/Urhb2VfmhyC2360iIyaL6xZG0 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM5PR04MB3139.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(366004)(346002)(376002)(396003)(39860400002)(451199021)(66556008)(83380400001)(2616005)(41300700001)(5660300002)(36756003)(86362001)(44832011)(8676002)(8936002)(38350700002)(38100700002)(6666004)(6512007)(316002)(52116002)(6486002)(66476007)(66946007)(4326008)(478600001)(2906002)(4744005)(186003)(6506007)(1076003)(26005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: yz+GbVlKtzn4ePwlgd7SQLgvHEMrBdLbhGboAPCwFHl8uEWFEQ+fVJuMlegQR4F3zpwaJG2RgTigyJgXcDJyS6Q2YhuKN10qyRh0jZaDMElh40HSAQGcMkeMCBdcJrcBs+ORUUkobJg5sVyZbAvD6C6J+rMttgzUFOgkIwhEAbMauMpVLpC5iOzx0ICeJkhefAP38TKyxIpqrf5VXgltcxb5duS8Zehs2QROhUztOZ2UIX+kbu0ik07lPg5A7k1cdYE3Nh/q4yyox36ByrmjdDpky5KAcs28y+NS1b4YySpLL+UGy5aK23V7ltOzYQa1LeygPzbWPfy46aoga1Z0DczocL1pePOEIOADNlwsfD9KIqUe5vr1Wdn/I8p39XlDrYqPZah+35VF9hq6vr0A1UFyFZEBZQs2t7jgRtAz2MEIKh2Zj+rplvbr+B8sgjFGrKgqgZiJi6MWGiKOxh4RkFMYiTmGuiBakftXM4BmjR20s7/26pTsTxyE/mJo2gW5RoN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riginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3f3040f4-9ef0-4add-4a9d-08db876f9a25 X-MS-Exchange-CrossTenant-AuthSource: AM5PR04MB3139.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2023 09:16:00.3463 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Vcig1+/zSZTFwrMeqGxOatrA0CSl/hcPenapp5vhcP6un76vI9BLDfDLzUu4sx1dX4LVR9fL36p/z07OdQbpQg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7832 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Patchwork-Delegate: kuba@kernel.org When reading the codes of the FEC driver recently, I found there are some redundant or invalid codes, these codes make the FEC driver a bit messy and not concise, so this patch set has cleaned up the FEC driver. At present, I only found these, but I believe these are not all, I will continue to clean up the FEC driver in the future. Wei Fang (3): net: fec: remove the remaining code of rx copybreak net: fec: remove fec_set_mac_address() from fec_enet_init() net: fec: remove unused members from struct fec_enet_private drivers/net/ethernet/freescale/fec.h | 5 --- drivers/net/ethernet/freescale/fec_main.c | 46 ----------------------- 2 files changed, 51 deletions(-) Reviewed-by: Simon Horman