patch-2.1.129 linux/drivers/block/ide-probe.c

Next file: linux/drivers/block/ns87415.c
Previous file: linux/drivers/block/ide-pmac.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.128/linux/drivers/block/ide-probe.c linux/drivers/block/ide-probe.c
@@ -78,8 +78,18 @@
 	ide_fixstring (id->serial_no, sizeof(id->serial_no), bswap);
 
 	id->model[sizeof(id->model)-1] = '\0';	/* we depend on this a lot! */
-	drive->present = 1;
 	printk("%s: %s, ", drive->name, id->model);
+	drive->present = 1;
+
+	/*
+	 * Prevent long system lockup probing later for non-existant
+	 * slave drive if the hwif is actually a Kodak CompactFlash card.
+	 */
+	if (!strcmp(id->model, "KODAK ATA_FLASH")) {
+		ide_drive_t *mate = &HWIF(drive)->drives[1^drive->select.b.unit];
+		mate->present = 0;
+		mate->noprobe = 1;
+	}
 
 	/*
 	 * Check for an ATAPI device

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov