MII: fix Kconfig dependencies for MII

MII Kconfig option is apart of the core networking drivers and
by default NET_CORE is enabled so drivers selecting MII will
have MII enabled as well.  It was found using the randconfig
option during testing, MII would be selected but NET_CORE
could be disabled.  This caused a dependency error.

Resolved the dependency by selecting NET_CORE when MII is
selected.

Reported-by: Emil Tantilov <emil.s.tantilov@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Jeff Kirsher 2011-09-14 21:23:14 +00:00 committed by David S. Miller
parent 4f2f25f9f0
commit aaba215ca0
31 changed files with 52 additions and 0 deletions

View file

@ -4,6 +4,7 @@ config ETRAX_ETHERNET
bool "Ethernet support" bool "Ethernet support"
depends on ETRAX_ARCH_V10 depends on ETRAX_ARCH_V10
select NET_ETHERNET select NET_ETHERNET
select NET_CORE
select MII select MII
help help
This option enables the ETRAX 100LX built-in 10/100Mbit Ethernet This option enables the ETRAX 100LX built-in 10/100Mbit Ethernet

View file

@ -4,6 +4,7 @@ config ETRAX_ETHERNET
bool "Ethernet support" bool "Ethernet support"
depends on ETRAX_ARCH_V32 depends on ETRAX_ARCH_V32
select NET_ETHERNET select NET_ETHERNET
select NET_CORE
select MII select MII
help help
This option enables the ETRAX FS built-in 10/100Mbit Ethernet This option enables the ETRAX FS built-in 10/100Mbit Ethernet

View file

@ -81,6 +81,7 @@ config PCMCIA_3C589
config VORTEX config VORTEX
tristate "3c590/3c900 series (592/595/597) \"Vortex/Boomerang\" support" tristate "3c590/3c900 series (592/595/597) \"Vortex/Boomerang\" support"
depends on (PCI || EISA) depends on (PCI || EISA)
select NET_CORE
select MII select MII
---help--- ---help---
This option enables driver support for a large number of 10Mbps and This option enables driver support for a large number of 10Mbps and

View file

@ -62,6 +62,7 @@ config JME
tristate "JMicron(R) PCI-Express Gigabit Ethernet support" tristate "JMicron(R) PCI-Express Gigabit Ethernet support"
depends on PCI depends on PCI
select CRC32 select CRC32
select NET_CORE
select MII select MII
---help--- ---help---
This driver supports the PCI-Express gigabit ethernet adapters This driver supports the PCI-Express gigabit ethernet adapters
@ -102,6 +103,7 @@ config FEALNX
tristate "Myson MTD-8xx PCI Ethernet support" tristate "Myson MTD-8xx PCI Ethernet support"
depends on PCI depends on PCI
select CRC32 select CRC32
select NET_CORE
select MII select MII
---help--- ---help---
Say Y here to support the Myson MTD-800 family of PCI-based Ethernet Say Y here to support the Myson MTD-800 family of PCI-based Ethernet
@ -112,6 +114,7 @@ source "drivers/net/ethernet/8390/Kconfig"
config NET_NETX config NET_NETX
tristate "NetX Ethernet support" tristate "NetX Ethernet support"
select NET_CORE
select MII select MII
depends on ARCH_NETX depends on ARCH_NETX
---help--- ---help---
@ -128,6 +131,7 @@ source "drivers/net/ethernet/oki-semi/Kconfig"
config ETHOC config ETHOC
tristate "OpenCores 10/100 Mbps Ethernet MAC support" tristate "OpenCores 10/100 Mbps Ethernet MAC support"
depends on HAS_IOMEM && HAS_DMA depends on HAS_IOMEM && HAS_DMA
select NET_CORE
select MII select MII
select PHYLIB select PHYLIB
select CRC32 select CRC32

View file

@ -22,6 +22,7 @@ config ADAPTEC_STARFIRE
tristate "Adaptec Starfire/DuraLAN support" tristate "Adaptec Starfire/DuraLAN support"
depends on PCI depends on PCI
select CRC32 select CRC32
select NET_CORE
select MII select MII
---help--- ---help---
Say Y here if you have an Adaptec Starfire (or DuraLAN) PCI network Say Y here if you have an Adaptec Starfire (or DuraLAN) PCI network

View file

@ -23,6 +23,7 @@ config BFIN_MAC
tristate "Blackfin on-chip MAC support" tristate "Blackfin on-chip MAC support"
depends on (BF516 || BF518 || BF526 || BF527 || BF536 || BF537) depends on (BF516 || BF518 || BF526 || BF527 || BF536 || BF537)
select CRC32 select CRC32
select NET_CORE
select MII select MII
select PHYLIB select PHYLIB
select BFIN_MAC_USE_L1 if DMA_UNCACHED_NONE select BFIN_MAC_USE_L1 if DMA_UNCACHED_NONE

View file

@ -34,6 +34,7 @@ config AMD8111_ETH
tristate "AMD 8111 (new PCI LANCE) support" tristate "AMD 8111 (new PCI LANCE) support"
depends on PCI depends on PCI
select CRC32 select CRC32
select NET_CORE
select MII select MII
---help--- ---help---
If you have an AMD 8111-based PCI LANCE ethernet card, If you have an AMD 8111-based PCI LANCE ethernet card,
@ -59,6 +60,7 @@ config PCNET32
tristate "AMD PCnet32 PCI support" tristate "AMD PCnet32 PCI support"
depends on PCI depends on PCI
select CRC32 select CRC32
select NET_CORE
select MII select MII
---help--- ---help---
If you have a PCnet32 or PCnetPCI based network (Ethernet) card, If you have a PCnet32 or PCnetPCI based network (Ethernet) card,

View file

@ -22,6 +22,7 @@ config ATL2
tristate "Atheros L2 Fast Ethernet support" tristate "Atheros L2 Fast Ethernet support"
depends on PCI depends on PCI
select CRC32 select CRC32
select NET_CORE
select MII select MII
---help--- ---help---
This driver supports the Atheros L2 fast ethernet adapter. This driver supports the Atheros L2 fast ethernet adapter.
@ -33,6 +34,7 @@ config ATL1
tristate "Atheros/Attansic L1 Gigabit Ethernet support" tristate "Atheros/Attansic L1 Gigabit Ethernet support"
depends on PCI depends on PCI
select CRC32 select CRC32
select NET_CORE
select MII select MII
---help--- ---help---
This driver supports the Atheros/Attansic L1 gigabit ethernet This driver supports the Atheros/Attansic L1 gigabit ethernet
@ -45,6 +47,7 @@ config ATL1E
tristate "Atheros L1E Gigabit Ethernet support (EXPERIMENTAL)" tristate "Atheros L1E Gigabit Ethernet support (EXPERIMENTAL)"
depends on PCI && EXPERIMENTAL depends on PCI && EXPERIMENTAL
select CRC32 select CRC32
select NET_CORE
select MII select MII
---help--- ---help---
This driver supports the Atheros L1E gigabit ethernet adapter. This driver supports the Atheros L1E gigabit ethernet adapter.
@ -56,6 +59,7 @@ config ATL1C
tristate "Atheros L1C Gigabit Ethernet support (EXPERIMENTAL)" tristate "Atheros L1C Gigabit Ethernet support (EXPERIMENTAL)"
depends on PCI && EXPERIMENTAL depends on PCI && EXPERIMENTAL
select CRC32 select CRC32
select NET_CORE
select MII select MII
---help--- ---help---
This driver supports the Atheros L1C gigabit ethernet adapter. This driver supports the Atheros L1C gigabit ethernet adapter.

View file

@ -22,6 +22,7 @@ config B44
tristate "Broadcom 440x/47xx ethernet support" tristate "Broadcom 440x/47xx ethernet support"
depends on SSB_POSSIBLE && HAS_DMA depends on SSB_POSSIBLE && HAS_DMA
select SSB select SSB
select NET_CORE
select MII select MII
---help--- ---help---
If you have a network (Ethernet) controller of this type, say Y If you have a network (Ethernet) controller of this type, say Y
@ -53,6 +54,7 @@ config B44_PCI
config BCM63XX_ENET config BCM63XX_ENET
tristate "Broadcom 63xx internal mac support" tristate "Broadcom 63xx internal mac support"
depends on BCM63XX depends on BCM63XX
select NET_CORE
select MII select MII
select PHYLIB select PHYLIB
help help

View file

@ -25,6 +25,7 @@ if NET_ATMEL
config ARM_AT91_ETHER config ARM_AT91_ETHER
tristate "AT91RM9200 Ethernet support" tristate "AT91RM9200 Ethernet support"
depends on ARM && ARCH_AT91RM9200 depends on ARM && ARCH_AT91RM9200
select NET_CORE
select MII select MII
---help--- ---help---
If you wish to compile a kernel for the AT91RM9200 and enable If you wish to compile a kernel for the AT91RM9200 and enable

View file

@ -21,6 +21,7 @@ if NET_VENDOR_CIRRUS
config EP93XX_ETH config EP93XX_ETH
tristate "EP93xx Ethernet support" tristate "EP93xx Ethernet support"
depends on ARM && ARCH_EP93XX depends on ARM && ARCH_EP93XX
select NET_CORE
select MII select MII
help help
This is a driver for the ethernet hardware included in EP93xx CPUs. This is a driver for the ethernet hardware included in EP93xx CPUs.

View file

@ -6,6 +6,7 @@ config DM9000
tristate "DM9000 support" tristate "DM9000 support"
depends on ARM || BLACKFIN || MIPS depends on ARM || BLACKFIN || MIPS
select CRC32 select CRC32
select NET_CORE
select MII select MII
---help--- ---help---
Support for DM9000 chipset. Support for DM9000 chipset.

View file

@ -125,6 +125,7 @@ config WINBOND_840
tristate "Winbond W89c840 Ethernet support" tristate "Winbond W89c840 Ethernet support"
depends on PCI depends on PCI
select CRC32 select CRC32
select NET_CORE
select MII select MII
---help--- ---help---
This driver is for the Winbond W89c840 chip. It also works with This driver is for the Winbond W89c840 chip. It also works with

View file

@ -66,6 +66,7 @@ config SUNDANCE
tristate "Sundance Alta support" tristate "Sundance Alta support"
depends on PCI depends on PCI
select CRC32 select CRC32
select NET_CORE
select MII select MII
---help--- ---help---
This driver is for the Sundance "Alta" chip. This driver is for the Sundance "Alta" chip.

View file

@ -21,6 +21,7 @@ if NET_VENDOR_FARADAY
config FTMAC100 config FTMAC100
tristate "Faraday FTMAC100 10/100 Ethernet support" tristate "Faraday FTMAC100 10/100 Ethernet support"
depends on ARM depends on ARM
select NET_CORE
select MII select MII
---help--- ---help---
This driver supports the FTMAC100 10/100 Ethernet controller This driver supports the FTMAC100 10/100 Ethernet controller

View file

@ -1,6 +1,7 @@
config FS_ENET config FS_ENET
tristate "Freescale Ethernet Driver" tristate "Freescale Ethernet Driver"
depends on NET_VENDOR_FREESCALE && (CPM1 || CPM2 || PPC_MPC512x) depends on NET_VENDOR_FREESCALE && (CPM1 || CPM2 || PPC_MPC512x)
select NET_CORE
select MII select MII
select PHYLIB select PHYLIB

View file

@ -5,6 +5,7 @@
config IP1000 config IP1000
tristate "IP1000 Gigabit Ethernet support" tristate "IP1000 Gigabit Ethernet support"
depends on PCI && EXPERIMENTAL depends on PCI && EXPERIMENTAL
select NET_CORE
select MII select MII
---help--- ---help---
This driver supports IP1000 gigabit Ethernet cards. This driver supports IP1000 gigabit Ethernet cards.

View file

@ -21,6 +21,7 @@ if NET_VENDOR_INTEL
config E100 config E100
tristate "Intel(R) PRO/100+ support" tristate "Intel(R) PRO/100+ support"
depends on PCI depends on PCI
select NET_CORE
select MII select MII
---help--- ---help---
This driver supports Intel(R) PRO/100 family of adapters. This driver supports Intel(R) PRO/100 family of adapters.

View file

@ -22,6 +22,7 @@ if NET_VENDOR_MICREL
config ARM_KS8695_ETHER config ARM_KS8695_ETHER
tristate "KS8695 Ethernet support" tristate "KS8695 Ethernet support"
depends on ARM && ARCH_KS8695 depends on ARM && ARCH_KS8695
select NET_CORE
select MII select MII
---help--- ---help---
If you wish to compile a kernel for the KS8695 and want to If you wish to compile a kernel for the KS8695 and want to
@ -38,6 +39,7 @@ config KS8842
config KS8851 config KS8851
tristate "Micrel KS8851 SPI" tristate "Micrel KS8851 SPI"
depends on SPI depends on SPI
select NET_CORE
select MII select MII
select CRC32 select CRC32
---help--- ---help---
@ -46,6 +48,7 @@ config KS8851
config KS8851_MLL config KS8851_MLL
tristate "Micrel KS8851 MLL" tristate "Micrel KS8851 MLL"
depends on HAS_IOMEM depends on HAS_IOMEM
select NET_CORE
select MII select MII
---help--- ---help---
This platform driver is for Micrel KS8851 Address/data bus This platform driver is for Micrel KS8851 Address/data bus
@ -54,6 +57,7 @@ config KS8851_MLL
config KSZ884X_PCI config KSZ884X_PCI
tristate "Micrel KSZ8841/2 PCI" tristate "Micrel KSZ8841/2 PCI"
depends on PCI depends on PCI
select NET_CORE
select MII select MII
select CRC32 select CRC32
---help--- ---help---

View file

@ -22,6 +22,7 @@ config W90P910_ETH
tristate "Nuvoton w90p910 Ethernet support" tristate "Nuvoton w90p910 Ethernet support"
depends on ARM && ARCH_W90X900 depends on ARM && ARCH_W90X900
select PHYLIB select PHYLIB
select NET_CORE
select MII select MII
---help--- ---help---
Say Y here if you want to use built-in Ethernet ports Say Y here if you want to use built-in Ethernet ports

View file

@ -5,6 +5,7 @@
config PCH_GBE config PCH_GBE
tristate "OKI SEMICONDUCTOR ML7223 IOH GbE (Intel EG20T PCH)" tristate "OKI SEMICONDUCTOR ML7223 IOH GbE (Intel EG20T PCH)"
depends on PCI depends on PCI
select NET_CORE
select MII select MII
---help--- ---help---
This is a gigabit ethernet driver for EG20T PCH. This is a gigabit ethernet driver for EG20T PCH.

View file

@ -20,6 +20,7 @@ if NET_PACKET_ENGINE
config HAMACHI config HAMACHI
tristate "Packet Engines Hamachi GNIC-II support" tristate "Packet Engines Hamachi GNIC-II support"
depends on PCI depends on PCI
select NET_CORE
select MII select MII
---help--- ---help---
If you have a Gigabit Ethernet card of this type, say Y and read If you have a Gigabit Ethernet card of this type, say Y and read

View file

@ -22,6 +22,7 @@ config R6040
tristate "RDC R6040 Fast Ethernet Adapter support" tristate "RDC R6040 Fast Ethernet Adapter support"
depends on PCI depends on PCI
select CRC32 select CRC32
select NET_CORE
select MII select MII
select PHYLIB select PHYLIB
---help--- ---help---

View file

@ -37,6 +37,7 @@ config 8139CP
tristate "RealTek RTL-8139 C+ PCI Fast Ethernet Adapter support (EXPERIMENTAL)" tristate "RealTek RTL-8139 C+ PCI Fast Ethernet Adapter support (EXPERIMENTAL)"
depends on PCI && EXPERIMENTAL depends on PCI && EXPERIMENTAL
select CRC32 select CRC32
select NET_CORE
select MII select MII
---help--- ---help---
This is a driver for the Fast Ethernet PCI network cards based on This is a driver for the Fast Ethernet PCI network cards based on
@ -51,6 +52,7 @@ config 8139TOO
tristate "RealTek RTL-8129/8130/8139 PCI Fast Ethernet Adapter support" tristate "RealTek RTL-8129/8130/8139 PCI Fast Ethernet Adapter support"
depends on PCI depends on PCI
select CRC32 select CRC32
select NET_CORE
select MII select MII
---help--- ---help---
This is a driver for the Fast Ethernet PCI network cards based on This is a driver for the Fast Ethernet PCI network cards based on
@ -105,6 +107,7 @@ config R8169
depends on PCI depends on PCI
select FW_LOADER select FW_LOADER
select CRC32 select CRC32
select NET_CORE
select MII select MII
---help--- ---help---
Say Y here if you have a Realtek 8169 PCI Gigabit Ethernet adapter. Say Y here if you have a Realtek 8169 PCI Gigabit Ethernet adapter.

View file

@ -9,6 +9,7 @@ config SH_ETH
CPU_SUBTYPE_SH7763 || CPU_SUBTYPE_SH7619 || \ CPU_SUBTYPE_SH7763 || CPU_SUBTYPE_SH7619 || \
CPU_SUBTYPE_SH7724 || CPU_SUBTYPE_SH7757) CPU_SUBTYPE_SH7724 || CPU_SUBTYPE_SH7757)
select CRC32 select CRC32
select NET_CORE
select MII select MII
select MDIO_BITBANG select MDIO_BITBANG
select PHYLIB select PHYLIB

View file

@ -22,6 +22,7 @@ config SGI_IOC3_ETH
bool "SGI IOC3 Ethernet" bool "SGI IOC3 Ethernet"
depends on PCI && SGI_IP27 depends on PCI && SGI_IP27
select CRC32 select CRC32
select NET_CORE
select MII select MII
---help--- ---help---
If you have a network (Ethernet) card of this type, say Y and read If you have a network (Ethernet) card of this type, say Y and read

View file

@ -22,6 +22,7 @@ config SIS900
tristate "SiS 900/7016 PCI Fast Ethernet Adapter support" tristate "SiS 900/7016 PCI Fast Ethernet Adapter support"
depends on PCI depends on PCI
select CRC32 select CRC32
select NET_CORE
select MII select MII
---help--- ---help---
This is a driver for the Fast Ethernet PCI network cards based on This is a driver for the Fast Ethernet PCI network cards based on
@ -38,6 +39,7 @@ config SIS190
tristate "SiS190/SiS191 gigabit ethernet support" tristate "SiS190/SiS191 gigabit ethernet support"
depends on PCI depends on PCI
select CRC32 select CRC32
select NET_CORE
select MII select MII
---help--- ---help---
Say Y here if you have a SiS 190 PCI Fast Ethernet adapter or Say Y here if you have a SiS 190 PCI Fast Ethernet adapter or

View file

@ -37,6 +37,7 @@ config SMC9194
config SMC91X config SMC91X
tristate "SMC 91C9x/91C1xxx support" tristate "SMC 91C9x/91C1xxx support"
select CRC32 select CRC32
select NET_CORE
select MII select MII
depends on (ARM || M32R || SUPERH || MIPS || BLACKFIN || \ depends on (ARM || M32R || SUPERH || MIPS || BLACKFIN || \
MN10300 || COLDFIRE) MN10300 || COLDFIRE)
@ -56,6 +57,7 @@ config PCMCIA_SMC91C92
tristate "SMC 91Cxx PCMCIA support" tristate "SMC 91Cxx PCMCIA support"
depends on PCMCIA depends on PCMCIA
select CRC32 select CRC32
select NET_CORE
select MII select MII
---help--- ---help---
Say Y here if you intend to attach an SMC 91Cxx compatible PCMCIA Say Y here if you intend to attach an SMC 91Cxx compatible PCMCIA
@ -68,6 +70,7 @@ config EPIC100
tristate "SMC EtherPower II" tristate "SMC EtherPower II"
depends on PCI depends on PCI
select CRC32 select CRC32
select NET_CORE
select MII select MII
---help--- ---help---
This driver is for the SMC EtherPower II 9432 PCI Ethernet NIC, This driver is for the SMC EtherPower II 9432 PCI Ethernet NIC,
@ -78,6 +81,7 @@ config EPIC100
config SMC911X config SMC911X
tristate "SMSC LAN911[5678] support" tristate "SMSC LAN911[5678] support"
select CRC32 select CRC32
select NET_CORE
select MII select MII
depends on (ARM || SUPERH || MN10300) depends on (ARM || SUPERH || MN10300)
---help--- ---help---
@ -95,6 +99,7 @@ config SMSC911X
tristate "SMSC LAN911x/LAN921x families embedded ethernet support" tristate "SMSC LAN911x/LAN921x families embedded ethernet support"
depends on (ARM || SUPERH || BLACKFIN || MIPS || MN10300) depends on (ARM || SUPERH || BLACKFIN || MIPS || MN10300)
select CRC32 select CRC32
select NET_CORE
select MII select MII
select PHYLIB select PHYLIB
---help--- ---help---

View file

@ -1,6 +1,7 @@
config STMMAC_ETH config STMMAC_ETH
tristate "STMicroelectronics 10/100/1000 Ethernet driver" tristate "STMicroelectronics 10/100/1000 Ethernet driver"
depends on HAS_IOMEM depends on HAS_IOMEM
select NET_CORE
select MII select MII
select PHYLIB select PHYLIB
select CRC32 select CRC32

View file

@ -22,6 +22,7 @@ config VIA_RHINE
tristate "VIA Rhine support" tristate "VIA Rhine support"
depends on PCI depends on PCI
select CRC32 select CRC32
select NET_CORE
select MII select MII
---help--- ---help---
If you have a VIA "Rhine" based network card (Rhine-I (VT86C100A), If you have a VIA "Rhine" based network card (Rhine-I (VT86C100A),
@ -47,6 +48,7 @@ config VIA_VELOCITY
depends on PCI depends on PCI
select CRC32 select CRC32
select CRC_CCITT select CRC_CCITT
select NET_CORE
select MII select MII
---help--- ---help---
If you have a VIA "Velocity" based network card say Y here. If you have a VIA "Velocity" based network card say Y here.

View file

@ -68,6 +68,7 @@ config USB_KAWETH
config USB_PEGASUS config USB_PEGASUS
tristate "USB Pegasus/Pegasus-II based ethernet device support" tristate "USB Pegasus/Pegasus-II based ethernet device support"
select NET_CORE
select MII select MII
---help--- ---help---
Say Y here if you know you have Pegasus or Pegasus-II based adapter. Say Y here if you know you have Pegasus or Pegasus-II based adapter.
@ -84,6 +85,7 @@ config USB_PEGASUS
config USB_RTL8150 config USB_RTL8150
tristate "USB RTL8150 based ethernet device support (EXPERIMENTAL)" tristate "USB RTL8150 based ethernet device support (EXPERIMENTAL)"
depends on EXPERIMENTAL depends on EXPERIMENTAL
select NET_CORE
select MII select MII
help help
Say Y here if you have RTL8150 based usb-ethernet adapter. Say Y here if you have RTL8150 based usb-ethernet adapter.
@ -95,6 +97,7 @@ config USB_RTL8150
config USB_USBNET config USB_USBNET
tristate "Multi-purpose USB Networking Framework" tristate "Multi-purpose USB Networking Framework"
select NET_CORE
select MII select MII
---help--- ---help---
This driver supports several kinds of network links over USB, This driver supports several kinds of network links over USB,