Skip to contentSkip to conversation

CONFIG_MII requires only CONFIG_NET

PATCH In review Adrian Bunk 2 participants 3 messages Aug 13, 2004 – Aug 14, 2004 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CONFIG_MII requires only CONFIG_NET

Hi Jeff,

the patch below still applies against 2.6.8-rc4-mm1.

Could you comment on it and apply it if it's correct?

TIA
Adrian

But trying it out CONFIG_MII=y seems to at least compile with CONFIG_NET_ETHERNET=n.

@Jeff:
It seems, CONFIG_MII doesn't actually require CONFIG_NET_ETHERNET? Could you comment on the following patch?

drivers/net/Kconfig renamed from drivers/net/Kconfig.old +9 -8
@@ -151,6 +151,15 @@
 
 	  If you don't have this card, of course say N.
 
+config MII
+        tristate "Generic Media Independent Interface device support"
+        depends on NET
+        help
+          Most ethernet controllers have MII transceiver either as an external
+          or internal device.  It is safe to say Y or M here even if your
+          ethernet card lack MII.
+
+
 if NETDEVICES
 	source "drivers/net/arcnet/Kconfig"
 endif
@@ -188,14 +197,6 @@
 	  kernel: saying N will just cause the configurator to skip all
 	  the questions about Ethernet network cards. If unsure, say N.
 
-config MII
-	tristate "Generic Media Independent Interface device support"
-	depends on NET_ETHERNET
-	help
-	  Most ethernet controllers have MII transceiver either as an external
-	  or internal device.  It is safe to say Y or M here even if your
-	  ethernet card lack MII.
-
 source "drivers/net/arm/Kconfig"
 
 config MACE
#1 lore raw
Quoted 7 lines · Adrian Bunk

But trying it out CONFIG_MII=y seems to at least compile with CONFIG_NET_ETHERNET=n.

@Jeff:
It seems, CONFIG_MII doesn't actually require CONFIG_NET_ETHERNET? Could you comment on the following patch?

Are there non-Ethernet drivers that use MII? If not what's the point?

Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
#2 lore raw
Quoted 10 lines · Herbert Xu
Quoted 7 lines · Adrian Bunk

But trying it out CONFIG_MII=y seems to at least compile with CONFIG_NET_ETHERNET=n.

@Jeff:
It seems, CONFIG_MII doesn't actually require CONFIG_NET_ETHERNET? Could you comment on the following patch?

Are there non-Ethernet drivers that use MII? If not what's the point?

The discussion some time ago started around the question whether USB_PEGASUS would have to depend on NET_ETHERNET since it selects MII.

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed