netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: David Miller <davem@davemloft.net>
Cc: netdev <netdev@vger.kernel.org>,
	Florian Fainelli <f.fainelli@gmail.com>,
	Russell King <rmk+kernel@armlinux.org.uk>,
	Heiner Kallweit <hkallweit1@gmail.com>,
	Andrew Lunn <andrew@lunn.ch>
Subject: [PATCH net-next v3 0/5] Move MDIO drivers into there own directory
Date: Sat, 22 Aug 2020 20:06:06 +0200	[thread overview]
Message-ID: <20200822180611.2576807-1-andrew@lunn.ch> (raw)

The phy subdirectory is getting cluttered. It has both PHY drivers and
MDIO drivers, plus a stray switch driver. Soon more PCS drivers are
likely to appear.

Move MDIO and PCS drivers into new directories. This requires fixing
up the xgene driver which uses a relative include path.

v2:
Move the subdirs to drivers/net, rather than drivers/net/phy.

v3:
Add subdirectories under include/linux for mdio and pcs

Andrew Lunn (5):
  net: pcs: Move XPCS into new PCS subdirectory
  net/phy/mdio-i2c: Move header file to include/linux/mdio
  net: xgene: Move shared header file into include/linux
  net: mdio: Move MDIO drivers into a new subdirectory
  net: phy: Sort Kconfig and Makefile

 MAINTAINERS                                   |  12 +-
 drivers/net/Kconfig                           |   4 +
 drivers/net/Makefile                          |   2 +
 .../net/ethernet/apm/xgene/xgene_enet_main.h  |   2 +-
 drivers/net/ethernet/stmicro/stmmac/Kconfig   |   2 +-
 drivers/net/ethernet/stmicro/stmmac/common.h  |   2 +-
 drivers/net/mdio/Kconfig                      | 241 +++++++++++
 drivers/net/mdio/Makefile                     |  27 ++
 drivers/net/{phy => mdio}/mdio-aspeed.c       |   0
 drivers/net/{phy => mdio}/mdio-bcm-iproc.c    |   0
 drivers/net/{phy => mdio}/mdio-bcm-unimac.c   |   0
 drivers/net/{phy => mdio}/mdio-bitbang.c      |   0
 drivers/net/{phy => mdio}/mdio-cavium.c       |   0
 drivers/net/{phy => mdio}/mdio-cavium.h       |   0
 drivers/net/{phy => mdio}/mdio-gpio.c         |   0
 drivers/net/{phy => mdio}/mdio-hisi-femac.c   |   0
 drivers/net/{phy => mdio}/mdio-i2c.c          |   3 +-
 drivers/net/{phy => mdio}/mdio-ipq4019.c      |   0
 drivers/net/{phy => mdio}/mdio-ipq8064.c      |   0
 drivers/net/{phy => mdio}/mdio-moxart.c       |   0
 drivers/net/{phy => mdio}/mdio-mscc-miim.c    |   0
 .../net/{phy => mdio}/mdio-mux-bcm-iproc.c    |   0
 drivers/net/{phy => mdio}/mdio-mux-gpio.c     |   0
 .../net/{phy => mdio}/mdio-mux-meson-g12a.c   |   0
 drivers/net/{phy => mdio}/mdio-mux-mmioreg.c  |   0
 .../net/{phy => mdio}/mdio-mux-multiplexer.c  |   0
 drivers/net/{phy => mdio}/mdio-mux.c          |   0
 drivers/net/{phy => mdio}/mdio-mvusb.c        |   0
 drivers/net/{phy => mdio}/mdio-octeon.c       |   0
 drivers/net/{phy => mdio}/mdio-sun4i.c        |   0
 drivers/net/{phy => mdio}/mdio-thunder.c      |   0
 drivers/net/{phy => mdio}/mdio-xgene.c        |   2 +-
 drivers/net/pcs/Kconfig                       |  20 +
 drivers/net/pcs/Makefile                      |   4 +
 .../net/{phy/mdio-xpcs.c => pcs/pcs-xpcs.c}   |   2 +-
 drivers/net/phy/Kconfig                       | 404 ++++--------------
 drivers/net/phy/Makefile                      |  37 +-
 drivers/net/phy/sfp.c                         |   2 +-
 .../net/phy => include/linux/mdio}/mdio-i2c.h |   0
 .../phy => include/linux/mdio}/mdio-xgene.h   |   0
 include/linux/{mdio-xpcs.h => pcs/pcs-xpcs.h} |   8 +-
 41 files changed, 405 insertions(+), 369 deletions(-)
 create mode 100644 drivers/net/mdio/Kconfig
 create mode 100644 drivers/net/mdio/Makefile
 rename drivers/net/{phy => mdio}/mdio-aspeed.c (100%)
 rename drivers/net/{phy => mdio}/mdio-bcm-iproc.c (100%)
 rename drivers/net/{phy => mdio}/mdio-bcm-unimac.c (100%)
 rename drivers/net/{phy => mdio}/mdio-bitbang.c (100%)
 rename drivers/net/{phy => mdio}/mdio-cavium.c (100%)
 rename drivers/net/{phy => mdio}/mdio-cavium.h (100%)
 rename drivers/net/{phy => mdio}/mdio-gpio.c (100%)
 rename drivers/net/{phy => mdio}/mdio-hisi-femac.c (100%)
 rename drivers/net/{phy => mdio}/mdio-i2c.c (98%)
 rename drivers/net/{phy => mdio}/mdio-ipq4019.c (100%)
 rename drivers/net/{phy => mdio}/mdio-ipq8064.c (100%)
 rename drivers/net/{phy => mdio}/mdio-moxart.c (100%)
 rename drivers/net/{phy => mdio}/mdio-mscc-miim.c (100%)
 rename drivers/net/{phy => mdio}/mdio-mux-bcm-iproc.c (100%)
 rename drivers/net/{phy => mdio}/mdio-mux-gpio.c (100%)
 rename drivers/net/{phy => mdio}/mdio-mux-meson-g12a.c (100%)
 rename drivers/net/{phy => mdio}/mdio-mux-mmioreg.c (100%)
 rename drivers/net/{phy => mdio}/mdio-mux-multiplexer.c (100%)
 rename drivers/net/{phy => mdio}/mdio-mux.c (100%)
 rename drivers/net/{phy => mdio}/mdio-mvusb.c (100%)
 rename drivers/net/{phy => mdio}/mdio-octeon.c (100%)
 rename drivers/net/{phy => mdio}/mdio-sun4i.c (100%)
 rename drivers/net/{phy => mdio}/mdio-thunder.c (100%)
 rename drivers/net/{phy => mdio}/mdio-xgene.c (99%)
 create mode 100644 drivers/net/pcs/Kconfig
 create mode 100644 drivers/net/pcs/Makefile
 rename drivers/net/{phy/mdio-xpcs.c => pcs/pcs-xpcs.c} (99%)
 rename {drivers/net/phy => include/linux/mdio}/mdio-i2c.h (100%)
 rename {drivers/net/phy => include/linux/mdio}/mdio-xgene.h (100%)
 rename include/linux/{mdio-xpcs.h => pcs/pcs-xpcs.h} (88%)

-- 
2.28.0


             reply	other threads:[~2020-08-22 18:06 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-22 18:06 Andrew Lunn [this message]
2020-08-22 18:06 ` [PATCH net-next v3 1/5] net: pcs: Move XPCS into new PCS subdirectory Andrew Lunn
2020-08-22 19:25   ` Florian Fainelli
2020-08-22 18:06 ` [PATCH net-next v3 2/5] net/phy/mdio-i2c: Move header file to include/linux/mdio Andrew Lunn
2020-08-22 19:26   ` Florian Fainelli
2020-08-22 18:06 ` [PATCH net-next v3 3/5] net: xgene: Move shared header file into include/linux Andrew Lunn
2020-08-22 19:26   ` Florian Fainelli
2020-08-22 18:06 ` [PATCH net-next v3 4/5] net: mdio: Move MDIO drivers into a new subdirectory Andrew Lunn
2020-08-22 18:06 ` [PATCH net-next v3 5/5] net: phy: Sort Kconfig and Makefile Andrew Lunn
2020-08-22 19:50 ` [PATCH net-next v3 0/5] Move MDIO drivers into there own directory David Miller
2020-08-22 19:51   ` Andrew Lunn
2020-08-22 20:16     ` David Miller
2020-08-22 20:44       ` Andrew Lunn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200822180611.2576807-1-andrew@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=f.fainelli@gmail.com \
    --cc=hkallweit1@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=rmk+kernel@armlinux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).