IDE0(Primary)/Slave Detection Problem

Adam D. Scislowicz (adams@fourelle.com)
Wed, 11 Jul 2001 14:57:09 -0700


While looking through ide-probe.c I came across the following code:
/*
* Prevent long system lockup probing later for non-existant
* slave drive if the hwif is actually a flash memory card of
some variety:
*/
if (drive_is_flashcard(drive)) {
ide_drive_t *mate =
&HWIF(drive)->drives[1^drive->select.b.unit];
if (!mate->ata_flash) {
mate->present = 0;
mate->noprobe = 1;
}
}

In my case I am using a flash card with a normal harddrive as the slave,
but
this code does not allow for that combination. Their must be a better
way to
handle this, or it should at least print, "Flash Disk Detected, Ignoring
Slave"...

-Adam Scislowicz <adams@fourelle.com>

-
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/