linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PATCH: (Discussion) Stop IDE legacy ISA probes on PCI systems
@ 2004-12-27 14:13 Alan Cox
  2004-12-27 21:15 ` Adam Sampson
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Cox @ 2004-12-27 14:13 UTC (permalink / raw)
  To: torvalds, Linux Kernel Mailing List, linux-ide,
	Bartlomiej Zolnierkiewicz

We don't generally want to poke around legacy ISA ide2..ide5 on a system
with PCI , it tends to cause long delays. 

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.10/include/asm-i386/ide.h linux-2.6.10/include/asm-i386/ide.h
--- linux.vanilla-2.6.10/include/asm-i386/ide.h	2004-12-25 21:13:51.000000000 +0000
+++ linux-2.6.10/include/asm-i386/ide.h	2004-12-26 17:08:27.541915144 +0000
@@ -44,10 +44,14 @@
 	switch (index) {
 		case 0:	return 0x1f0;
 		case 1:	return 0x170;
-		case 2: return 0x1e8;
-		case 3: return 0x168;
-		case 4: return 0x1e0;
-		case 5: return 0x160;
+		
+		if(pci_find_device(PCI_ANY_ID, PCI_ANY_ID, NULL) == NULL) {
+			case 2: return 0x1e8;
+			case 3: return 0x168;
+			case 4: return 0x1e0;
+			case 5: return 0x160;
+		}
+
 		default:
 			return 0;
 	}


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

end of thread, other threads:[~2004-12-28  3:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-27 14:13 PATCH: (Discussion) Stop IDE legacy ISA probes on PCI systems Alan Cox
2004-12-27 21:15 ` Adam Sampson
2004-12-27 22:15   ` Valdis.Kletnieks
2004-12-28  0:29   ` Linus Torvalds
2004-12-28  3:58     ` Coywolf Qi Hunt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).