net: phy: move the mscc driver to its own directory
authorAntoine Tenart <antoine.tenart@bootlin.com>
Fri, 13 Mar 2020 09:48:00 +0000 (10:48 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Mar 2020 04:06:45 +0000 (21:06 -0700)
The MSCC PHY driver is growing, with lots of space consuming features
(firmware support, full initialization, MACsec...). It's becoming hard
to read and navigate in its source code. This patch moves the MSCC
driver to its own directory, without modifying anything, as a
preparation for splitting up its features into dedicated files.

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/Makefile
drivers/net/phy/mscc/Makefile [new file with mode: 0644]
drivers/net/phy/mscc/mscc.c [moved from drivers/net/phy/mscc.c with 100% similarity]
drivers/net/phy/mscc/mscc_fc_buffer.h [moved from drivers/net/phy/mscc_fc_buffer.h with 100% similarity]
drivers/net/phy/mscc/mscc_mac.h [moved from drivers/net/phy/mscc_mac.h with 100% similarity]
drivers/net/phy/mscc/mscc_macsec.h [moved from drivers/net/phy/mscc_macsec.h with 100% similarity]

index 26f8039..70774ab 100644 (file)
@@ -89,7 +89,7 @@ obj-$(CONFIG_MICREL_KS8995MA) += spi_ks8995.o
 obj-$(CONFIG_MICREL_PHY)       += micrel.o
 obj-$(CONFIG_MICROCHIP_PHY)    += microchip.o
 obj-$(CONFIG_MICROCHIP_T1_PHY) += microchip_t1.o
-obj-$(CONFIG_MICROSEMI_PHY)    += mscc.o
+obj-$(CONFIG_MICROSEMI_PHY)    += mscc/
 obj-$(CONFIG_NATIONAL_PHY)     += national.o
 obj-$(CONFIG_NXP_TJA11XX_PHY)  += nxp-tja11xx.o
 obj-$(CONFIG_QSEMI_PHY)                += qsemi.o
diff --git a/drivers/net/phy/mscc/Makefile b/drivers/net/phy/mscc/Makefile
new file mode 100644 (file)
index 0000000..e419ed1
--- /dev/null
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+#
+# Makefile for MSCC networking PHY driver
+
+obj-$(CONFIG_MICROSEMI_PHY) += mscc.o