PCI configuration changes
Subsystems (8)
Hi,
Looking at the latest drivers/net/Config.in changes I noticed, that
two (modified earlier) lines are buggy:
dep_tristate ' 3c523 "EtherLink/MC" support' CONFIG_ELMC $CONFIG_MCA
dep_tristate ' 3c527 "EtherLink/MC 32" support (EXPERIMENTAL)' CONFIG_ELMC_II $CONFIG_MCA $CONFIG_EXPERIMENTAL
Note, that as CONFIG_MCA is defined only for i386 the dependencies on $CONFIG_MCA are no-op for other architectures (in Configure/Menuconfig). Either CONFIG_MCA should be defined for all architectures or there should be if ... fi around these lines.
BTW, is there any reason for not replacing
bool ' Other ISA cards' CONFIG_NET_ISA
by
dep_bool ' Other ISA cards' CONFIG_NET_ISA $CONFIG_ISA
to eliminate more drivers from non-ISA arch configs ?
Andrzej
Signature · 8 lines
======================================================================= Andrzej M. Krzysztofowicz [email protected] phone (48)(58) 347 14 61 Faculty of Applied Phys. & Math., Technical University of Gdansk - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/
[Andrzej Krzysztofowicz]
Quoted 4 lines
Note, that as
CONFIG_MCAis defined only for i386 the dependencies on $CONFIG_MCA are no-op for other architectures (in Configure/Menuconfig). EitherCONFIG_MCAshould be defined for all architectures or there should be if ... fi around these lines.
The former, I think. Less confusing in the long run.
Quoted 5 lines
BTW, is there any reason for not replacing
bool ' Other ISA cards'CONFIG_NET_ISA
by
dep_bool' Other ISA cards'CONFIG_NET_ISA$CONFIG_ISA
to eliminate more drivers from non-ISA arch configs ?
Looks good to me. Anything to remove clutter from config menus....
Peter
arch/alpha/config.in renamed from arch/alpha/config.in.orig +1 -0
@@ -69,6 +69,7 @@ define_bool CONFIG_ISA y define_bool CONFIG_EISA y define_bool CONFIG_SBUS n +define_bool CONFIG_MCA n if [ "$CONFIG_ALPHA_JENSEN" = "y" ] then
arch/arm/config.in renamed from arch/arm/config.in.orig +1 -0
@@ -7,6 +7,7 @@ define_bool CONFIG_ARM y define_bool CONFIG_EISA n define_bool CONFIG_SBUS n +define_bool CONFIG_MCA n define_bool CONFIG_UID16 y
arch/ia64/config.in renamed from arch/ia64/config.in.orig +1 -0
@@ -22,6 +22,7 @@ define_bool CONFIG_ISA n define_bool CONFIG_EISA n +define_bool CONFIG_MCA n define_bool CONFIG_SBUS n choice 'IA-64 system type' \
arch/m68k/config.in renamed from arch/m68k/config.in.orig +1 -0
@@ -26,6 +26,7 @@ define_bool CONFIG_ISA n define_bool CONFIG_EISA n +define_bool CONFIG_MCA n define_bool CONFIG_PCMCIA n bool 'Amiga support' CONFIG_AMIGA
arch/mips/config.in renamed from arch/mips/config.in.orig +1 -0
@@ -39,6 +39,7 @@ unset CONFIG_VIDEO_G364 unset CONFIG_PC_KEYB +define_bool CONFIG_MCA n define_bool CONFIG_SBUS n if [ "$CONFIG_ALGOR_P4032" = "y" ]; then
arch/mips64/config.in renamed from arch/mips64/config.in.orig +1 -0
@@ -66,6 +66,7 @@ define_bool CONFIG_PCI n fi +define_bool CONFIG_MCA n define_bool CONFIG_SBUS n mainmenu_option next_comment
arch/ppc/config.in renamed from arch/ppc/config.in.orig +3 -0
@@ -101,6 +101,9 @@ define_bool CONFIG_EISA n define_bool CONFIG_SBUS n +# Yes MCA RS/6000s exist but Linux-PPC does not currently support any +define_bool CONFIG_MCA n + if [ "$CONFIG_APUS" = "y" -o "$CONFIG_4xx" = "y" -o \ "$CONFIG_8260" = "y" ]; then define_bool CONFIG_PCI n
arch/s390/config.in renamed from arch/s390/config.in.orig +1 -0
@@ -5,6 +5,7 @@ define_bool CONFIG_ISA n define_bool CONFIG_EISA n +define_bool CONFIG_MCA n define_bool CONFIG_UID16 y mainmenu_name "Linux Kernel Configuration"
arch/sh/config.in renamed from arch/sh/config.in.orig +1 -0
@@ -67,6 +67,7 @@ define_bool CONFIG_ISA n define_bool CONFIG_EISA n +define_bool CONFIG_MCA n define_bool CONFIG_SBUS n bool 'Networking support' CONFIG_NET
arch/sparc/config.in renamed from arch/sparc/config.in.orig +1 -0
@@ -32,6 +32,7 @@ # Global things across all Sun machines. define_bool CONFIG_ISA n define_bool CONFIG_EISA n +define_bool CONFIG_MCA n define_bool CONFIG_PCMCIA n define_bool CONFIG_SBUS y define_bool CONFIG_SBUSCHAR y
arch/sparc64/config.in renamed from arch/sparc64/config.in.orig +1 -0
@@ -30,6 +30,7 @@ define_bool CONFIG_HAVE_DEC_LOCK y define_bool CONFIG_ISA n define_bool CONFIG_EISA n +define_bool CONFIG_MCA n define_bool CONFIG_PCMCIA n define_bool CONFIG_SBUS y define_bool CONFIG_SBUSCHAR y
drivers/net/Config.in renamed from drivers/net/Config.in.orig +1 -1
@@ -100,7 +100,7 @@ if [ "$CONFIG_ISA" = "y" -o "$CONFIG_EISA" = "y" -o "$CONFIG_PCI" = "y" ]; then tristate ' HP 10/100VG PCLAN (ISA, EISA, PCI) support' CONFIG_HP100 fi - bool ' Other ISA cards' CONFIG_NET_ISA + dep_bool ' Other ISA cards' CONFIG_NET_ISA $CONFIG_ISA if [ "$CONFIG_NET_ISA" = "y" ]; then tristate ' Cabletron E21xx support' CONFIG_E2100 if [ "$CONFIG_OBSOLETE" = "y" ]; then
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
Quoted 9 lines · Peter Samuelson
[Andrzej Krzysztofowicz]
Quoted 4 lines
Note, that as
CONFIG_MCAis defined only for i386 the dependencies on $CONFIG_MCA are no-op for other architectures (in Configure/Menuconfig). EitherCONFIG_MCAshould be defined for all architectures or there should be if ... fi around these lines.The former, I think. Less confusing in the long run.
Quoted 7 lines
Quoted 5 lines
BTW, is there any reason for not replacing
bool ' Other ISA cards'CONFIG_NET_ISA
by
dep_bool' Other ISA cards'CONFIG_NET_ISA$CONFIG_ISA
to eliminate more drivers from non-ISA arch configs ?Looks good to me. Anything to remove clutter from config menus....
Patch looks ok to me, applied.
Signature · 7 lines
Jeff Garzik | Building 1024 | The chief enemy of creativity is "good" sense MandrakeSoft | -- Picasso - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/
Quoted 10 lines
Quoted 7 lines · Peter Samuelson
[Andrzej Krzysztofowicz]
Quoted 4 lines
Note, that as
CONFIG_MCAis defined only for i386 the dependencies on $CONFIG_MCA are no-op for other architectures (in Configure/Menuconfig). EitherCONFIG_MCAshould be defined for all architectures or there should be if ... fi around these lines.Looks good to me. Anything to remove clutter from config menus....
Patch looks ok to me, applied.
I think the following i386 chunk should be added to the patch:
i386/config.in renamed from i386/config.in.old +2 -0
@@ -198,6 +198,8 @@ if [ "$CONFIG_VISWS" != "y" ]; then bool 'MCA support' CONFIG_MCA +else + define_bool CONFIG_MCA n fi bool 'Support for hot-pluggable devices' CONFIG_HOTPLUG
Signature · 8 lines
======================================================================= Andrzej M. Krzysztofowicz [email protected] phone (48)(58) 347 14 61 Faculty of Applied Phys. & Math., Technical University of Gdansk - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/
Oh yeah, another MCA cleanup to consider -- like EISA, there exists a 'MCA_bus' variable which is 0 or 1, depending on the absence or presence of MCA bus on the current system.
When CONFIG_MCA is enabled, this should be variable like it currently is [on x86]. When CONFIG_MCA==n, MCA_bus should be unconditionally defined to zero.
Look at how 'EISA_bus' is handled in test11-pre5...
Jeff
Signature · 7 lines
Jeff Garzik | Building 1024 | The chief enemy of creativity is "good" sense MandrakeSoft | -- Picasso - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/
[Jeff Garzik <[email protected]>]
Quoted 3 lines
Oh yeah, another MCA cleanup to consider -- like EISA, there exists a '
MCA_bus' variable which is 0 or 1, depending on the absence or presence of MCA bus on the current system.
OK, workin' on it..
Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/