From: ito at mlb.co.jp <ito@mlb.co.jp>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [patch] Support IDE secondary disk without primary disk.
Date: Wed, 05 Apr 2006 23:04:12 +0900 (JST) [thread overview]
Message-ID: <20060405.230412.71089200.ito@mlb.co.jp> (raw)
Hello
Current u-boot does not search disks on secondary port if there is no disks
on primary port.
this patch fixes this problem.
Signed-off-by: Hiroshi Ito <ito@mlb.co.jp>
CHANGELOG:
* Support IDE secondary disk without primary disk.
Patch by Hiroshi Ito, 5 Apr 2006
-------------- next part --------------
diff --git a/common/cmd_ide.c b/common/cmd_ide.c
index 41621ba..f37aa07 100644
--- a/common/cmd_ide.c
+++ b/common/cmd_ide.c
@@ -617,10 +617,11 @@ void ide_init (void)
if (s) ata_reset_time = 2*simple_strtol(s, NULL, 10);
#endif
i = 0;
- do {
+ for (;;) {
udelay (10000); /* 10 ms */
c = ide_inb (dev, ATA_STATUS);
+ if (!(c & ATA_STAT_BUSY)) break;
i++;
#ifdef CONFIG_AMIGAONEG3SE
if (i > (ata_reset_time * 100)) {
@@ -636,12 +637,12 @@ void ide_init (void)
goto skip_bus;
}
#endif
- return;
+ break;
}
if ((i >= 100) && ((i%100)==0)) {
putc ('.');
}
- } while (c & ATA_STAT_BUSY);
+ }
if (c & (ATA_STAT_BUSY | ATA_STAT_FAULT)) {
puts ("not available ");
reply other threads:[~2006-04-05 14:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20060405.230412.71089200.ito@mlb.co.jp \
--to=ito@mlb.co.jp \
--cc=u-boot@lists.denx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.