Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: Move MII out from under NET_CORE and hide it

All drivers that select MII also need to select NET_CORE because MII
depends on it. This is a bit ridiculous because NET_CORE is just a
menu option that doesn't enable any code by itself.

There is also no need for it to be a visible option, since its users
all select it.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Ben Hutchings and committed by
David S. Miller
a1606c7d 9ef71e0c

+3 -61
-1
arch/cris/arch-v10/drivers/Kconfig
··· 4 4 bool "Ethernet support" 5 5 depends on ETRAX_ARCH_V10 6 6 select ETHERNET 7 - select NET_CORE 8 7 select MII 9 8 help 10 9 This option enables the ETRAX 100LX built-in 10/100Mbit Ethernet
-1
arch/cris/arch-v32/drivers/Kconfig
··· 4 4 bool "Ethernet support" 5 5 depends on ETRAX_ARCH_V32 6 6 select ETHERNET 7 - select NET_CORE 8 7 select MII 9 8 help 10 9 This option enables the ETRAX FS built-in 10/100Mbit Ethernet
+3 -7
drivers/net/Kconfig
··· 25 25 # that for each of the symbols. 26 26 if NETDEVICES 27 27 28 + config MII 29 + tristate 30 + 28 31 config NET_CORE 29 32 default y 30 33 bool "Network core driver support" ··· 102 99 adaptor card in your computer; say Y here and to the driver for your 103 100 adaptor below. You also should have said Y to "SCSI support" and 104 101 "SCSI generic support". 105 - 106 - config MII 107 - tristate "Generic Media Independent Interface device support" 108 - help 109 - Most ethernet controllers have MII transceiver either as an external 110 - or internal device. It is safe to say Y or M here even if your 111 - ethernet card lacks MII. 112 102 113 103 config IFB 114 104 tristate "Intermediate Functional Block support"
-1
drivers/net/ethernet/3com/Kconfig
··· 67 67 config VORTEX 68 68 tristate "3c590/3c900 series (592/595/597) \"Vortex/Boomerang\" support" 69 69 depends on (PCI || EISA) && HAS_IOPORT 70 - select NET_CORE 71 70 select MII 72 71 ---help--- 73 72 This option enables driver support for a large number of 10Mbps and
-4
drivers/net/ethernet/Kconfig
··· 64 64 tristate "JMicron(R) PCI-Express Gigabit Ethernet support" 65 65 depends on PCI 66 66 select CRC32 67 - select NET_CORE 68 67 select MII 69 68 ---help--- 70 69 This driver supports the PCI-Express gigabit ethernet adapters ··· 95 96 tristate "Myson MTD-8xx PCI Ethernet support" 96 97 depends on PCI 97 98 select CRC32 98 - select NET_CORE 99 99 select MII 100 100 ---help--- 101 101 Say Y here to support the Myson MTD-800 family of PCI-based Ethernet ··· 105 107 106 108 config NET_NETX 107 109 tristate "NetX Ethernet support" 108 - select NET_CORE 109 110 select MII 110 111 depends on ARCH_NETX 111 112 ---help--- ··· 122 125 config ETHOC 123 126 tristate "OpenCores 10/100 Mbps Ethernet MAC support" 124 127 depends on HAS_IOMEM && HAS_DMA 125 - select NET_CORE 126 128 select MII 127 129 select PHYLIB 128 130 select CRC32
-1
drivers/net/ethernet/adaptec/Kconfig
··· 22 22 tristate "Adaptec Starfire/DuraLAN support" 23 23 depends on PCI 24 24 select CRC32 25 - select NET_CORE 26 25 select MII 27 26 ---help--- 28 27 Say Y here if you have an Adaptec Starfire (or DuraLAN) PCI network
-1
drivers/net/ethernet/adi/Kconfig
··· 23 23 tristate "Blackfin on-chip MAC support" 24 24 depends on (BF516 || BF518 || BF526 || BF527 || BF536 || BF537) 25 25 select CRC32 26 - select NET_CORE 27 26 select MII 28 27 select PHYLIB 29 28 select BFIN_MAC_USE_L1 if DMA_UNCACHED_NONE
-1
drivers/net/ethernet/allwinner/Kconfig
··· 24 24 depends on ARCH_SUNXI 25 25 depends on OF 26 26 select CRC32 27 - select NET_CORE 28 27 select MII 29 28 select PHYLIB 30 29 ---help---
-2
drivers/net/ethernet/amd/Kconfig
··· 34 34 tristate "AMD 8111 (new PCI LANCE) support" 35 35 depends on PCI 36 36 select CRC32 37 - select NET_CORE 38 37 select MII 39 38 ---help--- 40 39 If you have an AMD 8111-based PCI LANCE ethernet card, ··· 59 60 tristate "AMD PCnet32 PCI support" 60 61 depends on PCI 61 62 select CRC32 62 - select NET_CORE 63 63 select MII 64 64 ---help--- 65 65 If you have a PCnet32 or PCnetPCI based network (Ethernet) card,
-4
drivers/net/ethernet/atheros/Kconfig
··· 22 22 tristate "Atheros L2 Fast Ethernet support" 23 23 depends on PCI 24 24 select CRC32 25 - select NET_CORE 26 25 select MII 27 26 ---help--- 28 27 This driver supports the Atheros L2 fast ethernet adapter. ··· 33 34 tristate "Atheros/Attansic L1 Gigabit Ethernet support" 34 35 depends on PCI 35 36 select CRC32 36 - select NET_CORE 37 37 select MII 38 38 ---help--- 39 39 This driver supports the Atheros/Attansic L1 gigabit ethernet ··· 45 47 tristate "Atheros L1E Gigabit Ethernet support" 46 48 depends on PCI 47 49 select CRC32 48 - select NET_CORE 49 50 select MII 50 51 ---help--- 51 52 This driver supports the Atheros L1E gigabit ethernet adapter. ··· 56 59 tristate "Atheros L1C Gigabit Ethernet support" 57 60 depends on PCI 58 61 select CRC32 59 - select NET_CORE 60 62 select MII 61 63 ---help--- 62 64 This driver supports the Atheros L1C gigabit ethernet adapter.
-2
drivers/net/ethernet/broadcom/Kconfig
··· 22 22 tristate "Broadcom 440x/47xx ethernet support" 23 23 depends on SSB_POSSIBLE && HAS_DMA 24 24 select SSB 25 - select NET_CORE 26 25 select MII 27 26 ---help--- 28 27 If you have a network (Ethernet) controller of this type, say Y ··· 53 54 config BCM63XX_ENET 54 55 tristate "Broadcom 63xx internal mac support" 55 56 depends on BCM63XX 56 - select NET_CORE 57 57 select MII 58 58 select PHYLIB 59 59 help
-1
drivers/net/ethernet/cirrus/Kconfig
··· 44 44 config EP93XX_ETH 45 45 tristate "EP93xx Ethernet support" 46 46 depends on ARM && ARCH_EP93XX 47 - select NET_CORE 48 47 select MII 49 48 help 50 49 This is a driver for the ethernet hardware included in EP93xx CPUs.
-1
drivers/net/ethernet/davicom/Kconfig
··· 6 6 tristate "DM9000 support" 7 7 depends on ARM || BLACKFIN || MIPS || COLDFIRE 8 8 select CRC32 9 - select NET_CORE 10 9 select MII 11 10 ---help--- 12 11 Support for DM9000 chipset.
-1
drivers/net/ethernet/dec/tulip/Kconfig
··· 126 126 tristate "Winbond W89c840 Ethernet support" 127 127 depends on PCI 128 128 select CRC32 129 - select NET_CORE 130 129 select MII 131 130 ---help--- 132 131 This driver is for the Winbond W89c840 chip. It also works with
-1
drivers/net/ethernet/dlink/Kconfig
··· 36 36 tristate "Sundance Alta support" 37 37 depends on PCI 38 38 select CRC32 39 - select NET_CORE 40 39 select MII 41 40 ---help--- 42 41 This driver is for the Sundance "Alta" chip.
-1
drivers/net/ethernet/faraday/Kconfig
··· 21 21 config FTMAC100 22 22 tristate "Faraday FTMAC100 10/100 Ethernet support" 23 23 depends on ARM 24 - select NET_CORE 25 24 select MII 26 25 ---help--- 27 26 This driver supports the FTMAC100 10/100 Ethernet controller
-1
drivers/net/ethernet/freescale/fs_enet/Kconfig
··· 1 1 config FS_ENET 2 2 tristate "Freescale Ethernet Driver" 3 3 depends on NET_VENDOR_FREESCALE && (CPM1 || CPM2 || PPC_MPC512x) 4 - select NET_CORE 5 4 select MII 6 5 select PHYLIB 7 6
-1
drivers/net/ethernet/icplus/Kconfig
··· 5 5 config IP1000 6 6 tristate "IP1000 Gigabit Ethernet support" 7 7 depends on PCI 8 - select NET_CORE 9 8 select MII 10 9 ---help--- 11 10 This driver supports IP1000 gigabit Ethernet cards.
-1
drivers/net/ethernet/intel/Kconfig
··· 20 20 config E100 21 21 tristate "Intel(R) PRO/100+ support" 22 22 depends on PCI 23 - select NET_CORE 24 23 select MII 25 24 ---help--- 26 25 This driver supports Intel(R) PRO/100 family of adapters.
-4
drivers/net/ethernet/micrel/Kconfig
··· 22 22 config ARM_KS8695_ETHER 23 23 tristate "KS8695 Ethernet support" 24 24 depends on ARM && ARCH_KS8695 25 - select NET_CORE 26 25 select MII 27 26 ---help--- 28 27 If you wish to compile a kernel for the KS8695 and want to ··· 38 39 config KS8851 39 40 tristate "Micrel KS8851 SPI" 40 41 depends on SPI 41 - select NET_CORE 42 42 select MII 43 43 select CRC32 44 44 select EEPROM_93CX6 ··· 47 49 config KS8851_MLL 48 50 tristate "Micrel KS8851 MLL" 49 51 depends on HAS_IOMEM 50 - select NET_CORE 51 52 select MII 52 53 ---help--- 53 54 This platform driver is for Micrel KS8851 Address/data bus ··· 55 58 config KSZ884X_PCI 56 59 tristate "Micrel KSZ8841/2 PCI" 57 60 depends on PCI 58 - select NET_CORE 59 61 select MII 60 62 select CRC32 61 63 ---help---
-1
drivers/net/ethernet/nuvoton/Kconfig
··· 22 22 tristate "Nuvoton w90p910 Ethernet support" 23 23 depends on ARM && ARCH_W90X900 24 24 select PHYLIB 25 - select NET_CORE 26 25 select MII 27 26 ---help--- 28 27 Say Y here if you want to use built-in Ethernet ports
-1
drivers/net/ethernet/oki-semi/pch_gbe/Kconfig
··· 5 5 config PCH_GBE 6 6 tristate "OKI SEMICONDUCTOR IOH(ML7223/ML7831) GbE" 7 7 depends on PCI 8 - select NET_CORE 9 8 select MII 10 9 select PTP_1588_CLOCK_PCH 11 10 ---help---
-1
drivers/net/ethernet/packetengines/Kconfig
··· 21 21 config HAMACHI 22 22 tristate "Packet Engines Hamachi GNIC-II support" 23 23 depends on PCI 24 - select NET_CORE 25 24 select MII 26 25 ---help--- 27 26 If you have a Gigabit Ethernet card of this type, say Y and read
-1
drivers/net/ethernet/rdc/Kconfig
··· 22 22 tristate "RDC R6040 Fast Ethernet Adapter support" 23 23 depends on PCI 24 24 select CRC32 25 - select NET_CORE 26 25 select MII 27 26 select PHYLIB 28 27 ---help---
-3
drivers/net/ethernet/realtek/Kconfig
··· 37 37 tristate "RealTek RTL-8139 C+ PCI Fast Ethernet Adapter support" 38 38 depends on PCI 39 39 select CRC32 40 - select NET_CORE 41 40 select MII 42 41 ---help--- 43 42 This is a driver for the Fast Ethernet PCI network cards based on ··· 51 52 tristate "RealTek RTL-8129/8130/8139 PCI Fast Ethernet Adapter support" 52 53 depends on PCI 53 54 select CRC32 54 - select NET_CORE 55 55 select MII 56 56 ---help--- 57 57 This is a driver for the Fast Ethernet PCI network cards based on ··· 105 107 depends on PCI 106 108 select FW_LOADER 107 109 select CRC32 108 - select NET_CORE 109 110 select MII 110 111 ---help--- 111 112 Say Y here if you have a Realtek 8169 PCI Gigabit Ethernet adapter.
-1
drivers/net/ethernet/renesas/Kconfig
··· 5 5 config SH_ETH 6 6 tristate "Renesas SuperH Ethernet support" 7 7 select CRC32 8 - select NET_CORE 9 8 select MII 10 9 select MDIO_BITBANG 11 10 select PHYLIB
-1
drivers/net/ethernet/sgi/Kconfig
··· 22 22 bool "SGI IOC3 Ethernet" 23 23 depends on PCI && SGI_IP27 24 24 select CRC32 25 - select NET_CORE 26 25 select MII 27 26 ---help--- 28 27 If you have a network (Ethernet) card of this type, say Y and read
-2
drivers/net/ethernet/sis/Kconfig
··· 22 22 tristate "SiS 900/7016 PCI Fast Ethernet Adapter support" 23 23 depends on PCI 24 24 select CRC32 25 - select NET_CORE 26 25 select MII 27 26 ---help--- 28 27 This is a driver for the Fast Ethernet PCI network cards based on ··· 38 39 tristate "SiS190/SiS191 gigabit ethernet support" 39 40 depends on PCI 40 41 select CRC32 41 - select NET_CORE 42 42 select MII 43 43 ---help--- 44 44 Say Y here if you have a SiS 190 PCI Fast Ethernet adapter or
-5
drivers/net/ethernet/smsc/Kconfig
··· 37 37 config SMC91X 38 38 tristate "SMC 91C9x/91C1xxx support" 39 39 select CRC32 40 - select NET_CORE 41 40 select MII 42 41 depends on (ARM || M32R || SUPERH || MIPS || BLACKFIN || \ 43 42 MN10300 || COLDFIRE || ARM64) ··· 56 57 tristate "SMC 91Cxx PCMCIA support" 57 58 depends on PCMCIA 58 59 select CRC32 59 - select NET_CORE 60 60 select MII 61 61 ---help--- 62 62 Say Y here if you intend to attach an SMC 91Cxx compatible PCMCIA ··· 68 70 tristate "SMC EtherPower II" 69 71 depends on PCI 70 72 select CRC32 71 - select NET_CORE 72 73 select MII 73 74 ---help--- 74 75 This driver is for the SMC EtherPower II 9432 PCI Ethernet NIC, ··· 78 81 config SMC911X 79 82 tristate "SMSC LAN911[5678] support" 80 83 select CRC32 81 - select NET_CORE 82 84 select MII 83 85 depends on (ARM || SUPERH || MN10300) 84 86 ---help--- ··· 95 99 tristate "SMSC LAN911x/LAN921x families embedded ethernet support" 96 100 depends on HAS_IOMEM 97 101 select CRC32 98 - select NET_CORE 99 102 select MII 100 103 select PHYLIB 101 104 ---help---
-1
drivers/net/ethernet/stmicro/stmmac/Kconfig
··· 1 1 config STMMAC_ETH 2 2 tristate "STMicroelectronics 10/100/1000 Ethernet driver" 3 3 depends on HAS_IOMEM && HAS_DMA 4 - select NET_CORE 5 4 select MII 6 5 select PHYLIB 7 6 select CRC32
-2
drivers/net/ethernet/via/Kconfig
··· 21 21 tristate "VIA Rhine support" 22 22 depends on PCI 23 23 select CRC32 24 - select NET_CORE 25 24 select MII 26 25 ---help--- 27 26 If you have a VIA "Rhine" based network card (Rhine-I (VT86C100A), ··· 46 47 depends on (PCI || USE_OF) 47 48 select CRC32 48 49 select CRC_CCITT 49 - select NET_CORE 50 50 select MII 51 51 ---help--- 52 52 If you have a VIA "Velocity" based network card say Y here.
-4
drivers/net/usb/Kconfig
··· 67 67 68 68 config USB_PEGASUS 69 69 tristate "USB Pegasus/Pegasus-II based ethernet device support" 70 - select NET_CORE 71 70 select MII 72 71 ---help--- 73 72 Say Y here if you know you have Pegasus or Pegasus-II based adapter. ··· 82 83 83 84 config USB_RTL8150 84 85 tristate "USB RTL8150 based ethernet device support" 85 - select NET_CORE 86 86 select MII 87 87 help 88 88 Say Y here if you have RTL8150 based usb-ethernet adapter. ··· 93 95 94 96 config USB_RTL8152 95 97 tristate "Realtek RTL8152 Based USB 2.0 Ethernet Adapters" 96 - select NET_CORE 97 98 select MII 98 99 help 99 100 This option adds support for Realtek RTL8152 based USB 2.0 ··· 103 106 104 107 config USB_USBNET 105 108 tristate "Multi-purpose USB Networking Framework" 106 - select NET_CORE 107 109 select MII 108 110 ---help--- 109 111 This driver supports several kinds of network links over USB,
-1
drivers/staging/silicom/Kconfig
··· 32 32 depends on PCI && NET 33 33 depends on m 34 34 select SBYPASS 35 - select NET_CORE 36 35 select MII 37 36 ---help--- 38 37 If you have a network (Ethernet) controller of this type, say Y