Skip to contentSkip to conversation

SCSI_SATA has to be a tristate

PATCH In review Adrian Bunk 3 participants 4 messages Jul 8, 2005 – Jul 9, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 SCSI_SATA has to be a tristate

SCSI=m must disallow static drivers.

---

This patch was already sent on:
- 2 Jul 2005

drivers/scsi/Kconfig renamed from drivers/scsi/Kconfig.old +1 -1
@@ -447,7 +447,7 @@
 source "drivers/scsi/megaraid/Kconfig.megaraid"
 
 config SCSI_SATA
-	bool "Serial ATA (SATA) support"
+	tristate "Serial ATA (SATA) support"
 	depends on SCSI
 	help
 	  This driver family supports Serial ATA host controllers
#1 lore raw

Hi,

drivers/scsi/Kconfig line 453

Quoted 11 lines · Adrian Bunk
drivers/scsi/Kconfig renamed from drivers/scsi/Kconfig.old +1 -1
@@ -447,7 +447,7 @@
 source "drivers/scsi/megaraid/Kconfig.megaraid"
 
 config SCSI_SATA
-	bool "Serial ATA (SATA) support"
+	tristate "Serial ATA (SATA) support"
 	depends on SCSI
 	help
 	  This driver family supports Serial ATA host controllers

Did you verify that this works?
Overwise "depends on SCSI=y" might also be correct.

bye, Roman

#2 lore raw
Quoted 10 lines · Roman Zippel

Hi,

Quoted 5 lines · Adrian Bunk
drivers/scsi/Kconfig renamed from drivers/scsi/Kconfig.old +0 -0
@@ -447,7 +447,7 @@

source "drivers/scsi/megaraid/Kconfig.megaraid"

Quoted 9 lines
Quoted 6 lines

config SCSI_SATA

drivers/scsi/Kconfig renamed from drivers/scsi/Kconfig.old +1 -1
-	bool "Serial ATA (SATA) support"
+	tristate "Serial ATA (SATA) support"

depends on SCSI
help
This driver family supports Serial ATA host controllers

Did you verify that this works?

No, he didn't :)

This option needs to follow the rules for dep_mbool in 2.4.x. It should not be a tristate, but it is dependent on a tristate.

Jeff

#3 lore raw
In reply to Roman Zippel
Quoted 9 lines · Roman Zippel

Hi,

Quoted 5 lines · Adrian Bunk
drivers/scsi/Kconfig renamed from drivers/scsi/Kconfig.old +0 -0
@@ -447,7 +447,7 @@
 source "drivers/scsi/megaraid/Kconfig.megaraid"
 
Quoted 9 lines

drivers/scsi/Kconfig line 453

Quoted 6 lines
drivers/scsi/Kconfig renamed from drivers/scsi/Kconfig.old +1 -1
 config SCSI_SATA
-	bool "Serial ATA (SATA) support"
+	tristate "Serial ATA (SATA) support"
 	depends on SCSI
 	help
 	  This driver family supports Serial ATA host controllers

Did you verify that this works?
Overwise "depends on SCSI=y" might also be correct.

Yes, I did.

The problem is that all the SATA drivers depend on SCSI_SATA.

With SCSI=m and SCSI_SATA=y this allows the static enabling of the SATA drivers with unwanted effects, e.g.:
- SCSI=m, SCSI_SATA=y, SCSI_ATA_ADMA=y
-> SCSI_ATA_ADMA is built statically but scsi/built-in.o is not linked
into the kernel
- SCSI=m, SCSI_SATA=y, SCSI_ATA_ADMA=y, SCSI_SATA_AHCI=m
-> SCSI_ATA_ADMA and libata are built statically but
scsi/built-in.o is not linked into the kernel, SCSI_SATA_AHCI is built modular (unresolved symbols due to missing
libata)

Making SCSI_SATA a tristate solves all these problems.

"depends on SCSI=y" would also solve these problems, but it would leave people with modular SCSI without SATA support...

Quoted 1 line

bye, Roman

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