From patchwork Tue Mar 10 09:07:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antoine Tenart X-Patchwork-Id: 222775 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E771BC18E5B for ; Tue, 10 Mar 2020 09:07:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CB22620674 for ; Tue, 10 Mar 2020 09:07:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726641AbgCJJHb (ORCPT ); Tue, 10 Mar 2020 05:07:31 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:44617 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726195AbgCJJHa (ORCPT ); Tue, 10 Mar 2020 05:07:30 -0400 X-Originating-IP: 90.89.41.158 Received: from localhost (lfbn-tou-1-1473-158.w90-89.abo.wanadoo.fr [90.89.41.158]) (Authenticated sender: antoine.tenart@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 6EE146000E; Tue, 10 Mar 2020 09:07:28 +0000 (UTC) From: Antoine Tenart To: davem@davemloft.net, andrew@lunn.ch, f.fainelli@gmail.com, hkallweit1@gmail.com Cc: Antoine Tenart , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 0/3] net: phy: split the mscc driver Date: Tue, 10 Mar 2020 10:07:17 +0100 Message-Id: <20200310090720.521745-1-antoine.tenart@bootlin.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hello, This is a proposal to split the MSCC PHY driver, as its code base grew a lot lately (it's already 3800+ lines). It also supports features requiring a lot of code (MACsec), which would gain in being split from the driver core, for readability and maintenance. This is also done as other features should be coming later, which will also need lots of code addition. This series shouldn't change the way the driver works. I checked, and there were no patch pending on this driver. This change was done on top of all the modifications done on this driver in net-next. Thanks, Antoine Antoine Tenart (3): net: phy: move the mscc driver to its own directory net: phy: mscc: split the driver into separate files net: phy: mscc: fix header defines and descriptions drivers/net/phy/Makefile | 2 +- drivers/net/phy/mscc/Makefile | 10 + drivers/net/phy/mscc/mscc.h | 451 ++++++ drivers/net/phy/{ => mscc}/mscc_fc_buffer.h | 8 +- drivers/net/phy/{ => mscc}/mscc_mac.h | 8 +- drivers/net/phy/mscc/mscc_macsec.c | 1051 +++++++++++++ drivers/net/phy/{ => mscc}/mscc_macsec.h | 8 +- drivers/net/phy/{mscc.c => mscc/mscc_main.c} | 1469 +----------------- 8 files changed, 1533 insertions(+), 1474 deletions(-) create mode 100644 drivers/net/phy/mscc/Makefile create mode 100644 drivers/net/phy/mscc/mscc.h rename drivers/net/phy/{ => mscc}/mscc_fc_buffer.h (95%) rename drivers/net/phy/{ => mscc}/mscc_mac.h (98%) create mode 100644 drivers/net/phy/mscc/mscc_macsec.c rename drivers/net/phy/{ => mscc}/mscc_macsec.h (98%) rename drivers/net/phy/{mscc.c => mscc/mscc_main.c} (60%)