Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Peter Horton <pdh@colonel-panic.org>
To: linux-mips@linux-mips.org
Cc: ralf@linux-mips.org
Subject: [PATCH 2.6.x] Cobalt IDE fix, take 2
Date: Mon, 23 Jan 2006 22:33:54 +0000	[thread overview]
Message-ID: <20060123223354.GA2698@colonel-panic.org> (raw)

Fix long boot delay on Cobalt scanning non-existent IDE interfaces.

P.

Index: linux.git/include/asm-mips/mach-cobalt/ide.h
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ linux.git/include/asm-mips/mach-cobalt/ide.h	2006-01-23 22:04:15.000000000 +0000
@@ -0,0 +1,8 @@
+#ifndef __ASM_COBALT_IDE_H
+#define __ASM_COBALT_IDE_H
+
+#define MAX_LEGACY_HWIFS	2
+
+#include <asm/mach-generic/ide.h>
+
+#endif
Index: linux.git/include/asm-mips/mach-generic/ide.h
===================================================================
--- linux.git.orig/include/asm-mips/mach-generic/ide.h	2006-01-23 22:04:10.000000000 +0000
+++ linux.git/include/asm-mips/mach-generic/ide.h	2006-01-23 22:30:38.000000000 +0000
@@ -28,6 +28,10 @@
 # endif
 #endif
 
+#ifndef MAX_LEGACY_HWIFS
+# define MAX_LEGACY_HWIFS	6
+#endif
+
 #define IDE_ARCH_OBSOLETE_DEFAULTS
 
 static __inline__ int ide_probe_legacy(void)
@@ -73,7 +77,7 @@
 
 static __inline__ unsigned long ide_default_io_base(int index)
 {
-	if (ide_probe_legacy())
+	if (index < MAX_LEGACY_HWIFS && ide_probe_legacy())
 		switch (index) {
 		case 0:
 			return 0x1f0;

             reply	other threads:[~2006-01-23 22:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-23 22:33 Peter Horton [this message]
2006-01-23 23:39 ` [PATCH 2.6.x] Cobalt IDE fix, take 2 Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060123223354.GA2698@colonel-panic.org \
    --to=pdh@colonel-panic.org \
    --cc=linux-mips@linux-mips.org \
    --cc=ralf@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox