[PATCH] SCSI: link scsi_debug later (updated)

From: Randy.Dunlap
Date: Wed Mar 22 2006 - 16:42:25 EST


From: Randy Dunlap <rdunlap@xxxxxxxxxxxx>

Changing CONFIG_SCSI_DEBUG from =n or =m to =y can cause the enumeration
of the SATA devices to change.

Fix that by linking the scsi_debug driver after the SATA drivers.
Leave scsi_debug at the bottom of the list of low-level drivers so
that this problem doesn't happen again.

Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxx>
Signed-off-by: Douglas Gilbert <dougg@xxxxxxxxxx>
---
drivers/scsi/Makefile | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

--- linux-2616-rc6.orig/drivers/scsi/Makefile
+++ linux-2616-rc6/drivers/scsi/Makefile
@@ -117,7 +117,6 @@ obj-$(CONFIG_SCSI_PPA) += ppa.o
obj-$(CONFIG_SCSI_IMM) += imm.o
obj-$(CONFIG_JAZZ_ESP) += NCR53C9x.o jazz_esp.o
obj-$(CONFIG_SUN3X_ESP) += NCR53C9x.o sun3x_esp.o
-obj-$(CONFIG_SCSI_DEBUG) += scsi_debug.o
obj-$(CONFIG_SCSI_FCAL) += fcal.o
obj-$(CONFIG_SCSI_LASI700) += 53c700.o lasi700.o
obj-$(CONFIG_SCSI_NSP32) += nsp32.o
@@ -140,6 +139,7 @@ obj-$(CONFIG_SCSI_SATA_MV) += libata.o s
obj-$(CONFIG_SCSI_PDC_ADMA) += libata.o pdc_adma.o

obj-$(CONFIG_ARM) += arm/
+obj-$(CONFIG_SCSI_DEBUG) += scsi_debug.o

obj-$(CONFIG_CHR_DEV_ST) += st.o
obj-$(CONFIG_CHR_DEV_OSST) += osst.o



---
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/