IDE0(Primary)/Slave Detection Problem

From: Adam D. Scislowicz (adams@fourelle.com)
Date: Wed Jul 11 2001 - 16:57:09 EST


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/



This archive was generated by hypermail 2b29 : Sun Jul 15 2001 - 21:00:15 EST