[PATCH] allow hdX=scsi when ide-scsi is a module

From: Ion Badulescu (ionut@cs.columbia.edu)
Date: Mon Aug 20 2001 - 11:28:27 EST


Hi,

The current IDE code doesn't allow the user to reserve a drive to be used
only with ide-scsi emulation, if the ide-scsi layer is compiled as a
module. The following trivial patch fixes the problem, I've been using it
for the last 6 months or so.

The patch removes the explicit dependency on CONFIG_SCSI because ide-scsi
itself requires the SCSI subsystem.

Please apply...

Thanks,
Ion

-- 
  It is better to keep your mouth shut and be thought a fool,
            than to open it and remove all doubt.
-----------------------
diff -urX unpack/diff_kernel_excludes tmp/linux/drivers/ide/ide.c linux-2.4/drivers/ide/ide.c
--- tmp/linux/drivers/ide/ide.c	Mon Sep 11 08:42:57 2000
+++ linux-2.4/drivers/ide/ide.c	Wed Oct 11 14:25:14 2000
@@ -2973,7 +2973,7 @@
 				drive->remap_0_to_1 = 2;
 				goto done;
 			case -14: /* "scsi" */
-#if defined(CONFIG_BLK_DEV_IDESCSI) && defined(CONFIG_SCSI)
+#if defined(CONFIG_BLK_DEV_IDESCSI) || defined(CONFIG_BLK_DEV_IDESCSI_MODULE)
 				drive->scsi = 1;
 				goto done;
 #else

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



This archive was generated by hypermail 2b29 : Thu Aug 23 2001 - 21:00:36 EST