From: Selvamani Rajagopal Move oa_tc6.c to its own directory, drivers/net/ethernet/oa_tc6. File oa_tc6.c is renamed to oa_tc6_main.c to maintain the kernel module's name as oa_tc6. Having a separate oa_tc6 directory will facilitate adding more files as subsequent patches will add files for hardware timestamping and PTP support. Reviewed-by: Andrew Lunn Signed-off-by: Selvamani Rajagopal --- changes in v12 - Changed the commit message to remove the term "patch series". changes in v11 - Mentioned the renaming of oa_tc6.c in the commit message changes in v10 - Kernel module restored to oa_tc6.ko from oa_tc6_mod.ko changes in v9 - Changed MAINTAINERS to add "all files" under oa_tc6 - Added the missing "if COMPILE_TEST" - Added Reviewed by tag changes in v8 - No change changes in v7 - No change changes in v6 - No change changes in v5 - No change changes in v4 - Removed reference to onsemi in Kconfig files changes in v3 - Moved oa_tc6.c to its own, oa_tc6 directory under ethernet. - First patch --- MAINTAINERS | 2 +- drivers/net/ethernet/Kconfig | 12 +----------- drivers/net/ethernet/Makefile | 2 +- drivers/net/ethernet/oa_tc6/Kconfig | 15 +++++++++++++++ drivers/net/ethernet/oa_tc6/Makefile | 7 +++++++ drivers/net/ethernet/{oa_tc6.c => oa_tc6/oa_tc6_main.c} | 0 6 files changed, 25 insertions(+), 13 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 679b3b9565a1..ccc9dbf67731 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -21063,7 +21063,7 @@ M: Parthiban Veerasooran L: netdev@vger.kernel.org S: Maintained F: Documentation/networking/oa-tc6-framework.rst -F: drivers/net/ethernet/oa_tc6.c +F: drivers/net/ethernet/oa_tc6/* F: include/linux/oa_tc6.h OPEN FIRMWARE AND FLATTENED DEVICE TREE diff --git a/drivers/net/ethernet/Kconfig b/drivers/net/ethernet/Kconfig index c2b0161d0bec..5758e0fbbca5 100644 --- a/drivers/net/ethernet/Kconfig +++ b/drivers/net/ethernet/Kconfig @@ -135,6 +135,7 @@ source "drivers/net/ethernet/netronome/Kconfig" source "drivers/net/ethernet/8390/Kconfig" source "drivers/net/ethernet/nvidia/Kconfig" source "drivers/net/ethernet/nxp/Kconfig" +source "drivers/net/ethernet/oa_tc6/Kconfig" source "drivers/net/ethernet/oki-semi/Kconfig" config ETHOC @@ -147,17 +148,6 @@ config ETHOC help Say Y here if you want to use the OpenCores 10/100 Mbps Ethernet MAC. -config OA_TC6 - tristate "OPEN Alliance TC6 10BASE-T1x MAC-PHY support" if COMPILE_TEST - depends on SPI - select PHYLIB - help - This library implements OPEN Alliance TC6 10BASE-T1x MAC-PHY - Serial Interface protocol for supporting 10BASE-T1x MAC-PHYs. - - To know the implementation details, refer documentation in - . - source "drivers/net/ethernet/pasemi/Kconfig" source "drivers/net/ethernet/pensando/Kconfig" source "drivers/net/ethernet/qlogic/Kconfig" diff --git a/drivers/net/ethernet/Makefile b/drivers/net/ethernet/Makefile index a306dae23bcb..e0e86c249e42 100644 --- a/drivers/net/ethernet/Makefile +++ b/drivers/net/ethernet/Makefile @@ -72,6 +72,7 @@ obj-$(CONFIG_NET_VENDOR_NETRONOME) += netronome/ obj-$(CONFIG_NET_VENDOR_NI) += ni/ obj-$(CONFIG_NET_VENDOR_NVIDIA) += nvidia/ obj-$(CONFIG_LPC_ENET) += nxp/ +obj-$(CONFIG_OA_TC6) += oa_tc6/ obj-$(CONFIG_NET_VENDOR_OKI) += oki-semi/ obj-$(CONFIG_ETHOC) += ethoc.o obj-$(CONFIG_NET_VENDOR_PASEMI) += pasemi/ @@ -105,5 +106,4 @@ obj-$(CONFIG_NET_VENDOR_XILINX) += xilinx/ obj-$(CONFIG_NET_VENDOR_XIRCOM) += xircom/ obj-$(CONFIG_NET_VENDOR_SYNOPSYS) += synopsys/ obj-$(CONFIG_NET_VENDOR_PENSANDO) += pensando/ -obj-$(CONFIG_OA_TC6) += oa_tc6.o obj-$(CONFIG_NET_VENDOR_ZTE) += zte/ diff --git a/drivers/net/ethernet/oa_tc6/Kconfig b/drivers/net/ethernet/oa_tc6/Kconfig new file mode 100644 index 000000000000..ec2787eae4b1 --- /dev/null +++ b/drivers/net/ethernet/oa_tc6/Kconfig @@ -0,0 +1,15 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# OA TC6 10BASE-T1x MAC-PHY configuration +# + +config OA_TC6 + tristate "OPEN Alliance TC6 10BASE-T1x MAC-PHY support" if COMPILE_TEST + depends on SPI + select PHYLIB + help + This library implements OPEN Alliance TC6 10BASE-T1x MAC-PHY + Serial Interface protocol for supporting 10BASE-T1x MAC-PHYs. + + To know the implementation details, refer documentation in + . diff --git a/drivers/net/ethernet/oa_tc6/Makefile b/drivers/net/ethernet/oa_tc6/Makefile new file mode 100644 index 000000000000..c51621fae8be --- /dev/null +++ b/drivers/net/ethernet/oa_tc6/Makefile @@ -0,0 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Makefile for OA TC6 10BASE-T1x MAC-PHY +# + +obj-$(CONFIG_OA_TC6) += oa_tc6.o +oa_tc6-objs := oa_tc6_main.o diff --git a/drivers/net/ethernet/oa_tc6.c b/drivers/net/ethernet/oa_tc6/oa_tc6_main.c similarity index 100% rename from drivers/net/ethernet/oa_tc6.c rename to drivers/net/ethernet/oa_tc6/oa_tc6_main.c -- 2.43.0