lkml.org 
[lkml]   [2001]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectIDE0(Primary)/Slave Detection Problem
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/

\
 
 \ /
  Last update: 2005-03-22 12:57    [W:0.023 / U:5.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site