Skip to contentSkip to conversation

oneliners for ide-probe: Patch seems outdated, and has been ignored

TRIVIAL Rusty Trivial Russell 1 participant 1 message Dec 6, 2002 libata

lore
Share & tools
lore
#0 lore raw

From: "James McMechan" <[email protected]>

With this patch it boots and now behaves according to the comment above the if statement and tests the slave device if the master device is flash. Now it also tests the slave device if the slave device is flash but that is ok. It used to test and disable the master device if the slave was flash.

drivers/ide/ide-probe.c renamed from drivers/ide/ide-probe.c.orig +1 -1
@@ -214,7 +214,7 @@
 	 */
 	drive->is_flash = 0;
 	if (drive_is_flashcard(drive)) {
-		ide_drive_t *mate = &hwif->drives[1^drive->select.b.unit];
+		ide_drive_t *mate = &hwif->drives[1];
 		if (!mate->ata_flash) {
 			mate->present = 0;
 			mate->noprobe = 1;
Signature · 2 lines
  Don't blame me: the Monkey is driving
  File: "James McMechan" <[email protected]>: Re: oneliners for ide-probe: Patch seems outdated, and has been ignored