mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Problems with ide-default.c and my hdd (2.5.64-ac3)
@ 2003-03-14  2:03 Mauricio Nuñez
  2003-03-14  2:08 ` Finding Aki M Laukkanen? Kendall Bennett
  2003-03-14 14:33 ` Problems with ide-default.c and my hdd (2.5.64-ac3) Alan Cox
  0 siblings, 2 replies; 5+ messages in thread
From: Mauricio Nuñez @ 2003-03-14  2:03 UTC (permalink / raw)
  To: linux-kernel

Hi

I'm booting 2.5.64-ac3 with hdd=none because I got a Kernel Panic default 
attach failed.

With 2.4 not problems. What feedback can i send to you?

Att

Mauricio Nuñez
mauricio at chile dot com


^ permalink raw reply	[flat|nested] 5+ messages in thread
* RE: Problems with ide-default.c and my hdd (2.5.64-ac3)
@ 2003-03-14  2:20 Osamu Tomita
  0 siblings, 0 replies; 5+ messages in thread
From: Osamu Tomita @ 2003-03-14  2:20 UTC (permalink / raw)
  To: 'Mauricio Nunez '
  Cc: 'Alan Cox ', 'linux-kernel@vger.kernel.org '

[-- Attachment #1: Type: text/plain, Size: 410 bytes --]


-----Original Message-----
From: Mauricio Nunez
To: linux-kernel@vger.kernel.org
Sent: 2003/03/14 11:03
Subject: Problems with ide-default.c and my hdd (2.5.64-ac3)

> I'm booting 2.5.64-ac3 with hdd=none because I got a Kernel Panic
> default attach failed.

I had same trable. But my box is the PC9800 architecture.
Please test my patch attached. This may be OK for standard PC too.

Regards,
Osamu Tomita


[-- Attachment #2: ide-fix.patch --]
[-- Type: application/octet-stream, Size: 1145 bytes --]

This is quick fix for boot.

diff -Nru linux-2.5.64-ac3/drivers/ide/ide-probe.c linux-2.5.64-ac3-quick-fix/drivers/ide/ide-probe.c
--- linux-2.5.64-ac3/drivers/ide/ide-probe.c	2003-03-08 12:29:29.000000000 +0900
+++ linux-2.5.64-ac3-quick-fix/drivers/ide/ide-probe.c	2003-03-10 21:25:30.000000000 +0900
@@ -1392,7 +1392,8 @@
 			if (!hwif->present)
 				continue;
 			for (unit = 0; unit < MAX_DRIVES; ++unit)
-				ata_attach(&hwif->drives[unit]);
+				if (hwif->drives[unit].present)
+					ata_attach(&hwif->drives[unit]);
 		}
 	}
 	if (!ide_probe)
diff -Nru linux-2.5.64-ac3/drivers/ide/ide.c linux-2.5.64-ac3-quick-fix/drivers/ide/ide.c
--- linux-2.5.64-ac3/drivers/ide/ide.c	2003-03-08 12:29:29.000000000 +0900
+++ linux-2.5.64-ac3-quick-fix/drivers/ide/ide.c	2003-03-10 21:29:00.000000000 +0900
@@ -2377,7 +2377,8 @@
 	while (!list_empty(&list)) {
 		ide_drive_t *drive = list_entry(list.next, ide_drive_t, list);
 		list_del_init(&drive->list);
-		ata_attach(drive);
+		if (drive->present)
+			ata_attach(drive);
 	}
 	driver->gen_driver.name = (char *) driver->name;
 	driver->gen_driver.bus = &ide_bus_type;

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-03-14 18:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-14  2:03 Problems with ide-default.c and my hdd (2.5.64-ac3) Mauricio Nuñez
2003-03-14  2:08 ` Finding Aki M Laukkanen? Kendall Bennett
2003-03-14 18:27   ` Finding Aki M Laukkanen (VESAFB driver)? Kendall Bennett
2003-03-14 14:33 ` Problems with ide-default.c and my hdd (2.5.64-ac3) Alan Cox
2003-03-14  2:20 Osamu Tomita

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®