linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: alex@foogod.com
To: linux-kernel@vger.kernel.org
Subject: [patch] I-Opener fix (again)
Date: Mon, 11 Dec 2000 15:23:31 -0800	[thread overview]
Message-ID: <20001211152331.M10618@draco.foogod.com> (raw)

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

It's been a few months (and a couple of kernel releases) since I mentioned this
before and it doesn't look like it's made it in, and I haven't seen any more
comments on it in the list archives, so I'm bringing it up again in case it
just got forgotten about somewhere along the line..

As I remember, Andre Hedrick had asked for clarification on my original post,
and I sent a followup message in response, but now I can't seem to find it
anywhere in the archives, so I don't know whether it never made it out of my
mailer or..

In any case, attached is a patch (against 2.4.0pre11) which fixes the bug which
causes disk detection issues on I-Opener (and possibly other unusual) hardware.

The problem is that the code assumes that a flash-disk will always be the
primary disk on an interface, but on the I-Opener this is not always the case.
If a traditional disk is primary, and a flashdisk is secondary, the detection
code (wrongly) disables the primary disk that it had already previously
detected.

I would like to see this make it into the official source as it's a very small
change that fixes some obviously wrong behavior..

-alex

[-- Attachment #2: iopener.patch --]
[-- Type: text/plain, Size: 563 bytes --]

--- drivers/ide/ide-probe.c.orig	Mon Dec 11 14:59:08 2000
+++ drivers/ide/ide-probe.c	Mon Dec 11 15:00:13 2000
@@ -161,8 +161,8 @@
 	 * Prevent long system lockup probing later for non-existant
 	 * slave drive if the hwif is actually a flash memory card of some variety:
 	 */
-	if (drive_is_flashcard(drive)) {
-		ide_drive_t *mate = &HWIF(drive)->drives[1^drive->select.b.unit];
+	if (!drive->select.b.unit && drive_is_flashcard(drive)) {
+		ide_drive_t *mate = &HWIF(drive)->drives[1];
 		if (!mate->ata_flash) {
 			mate->present = 0;
 			mate->noprobe = 1;

             reply	other threads:[~2000-12-11 23:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-11 23:23 alex [this message]
2000-12-13  6:47 ` [patch] I-Opener fix (again) Andre Hedrick
2000-12-13 19:40   ` alex
2000-12-13 20:20     ` Tim Riker
2000-12-13 20:26       ` alex

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=20001211152331.M10618@draco.foogod.com \
    --to=alex@foogod.com \
    --cc=linux-kernel@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).