From: Alan Cox <alan@redhat.com>
To: akpm@osdl.org, linux-ide@vger.kernel.org
Subject: PATCH: ide probe
Date: Mon, 6 Sep 2004 11:33:04 -0400 [thread overview]
Message-ID: <20040906153304.GA6067@devserv.devel.redhat.com> (raw)
This is a revised version of the IDE probe undecoded slave detection patch. It
replaces the one in the -mm tree. It contains just the probe code so none of
the other IDE stuff thats pending Bartlomiej deciding which little bits to
merge first, and stands alone.
--- ../linux.vanilla-2.6.8.1/drivers/ide/ide-probe.c 2004-08-16 17:57:02.000000000 +0100
+++ drivers/ide/ide-probe.c 2004-08-30 14:46:17.000000000 +0100
@@ -749,6 +776,22 @@
ide_drive_t *drive = &hwif->drives[unit];
drive->dn = (hwif->channel ? 2 : 0) + unit;
(void) probe_for_drive(drive);
+ if (drive->present && hwif->present && unit == 1)
+ {
+ if(strcmp(hwif->drives[0].id->model, drive->id->model) == 0 &&
+ /* Don't do this for noprobe or non ATA */
+ strcmp(drive->id->model, "UNKNOWN") &&
+ /* ITE haven't got this figured out either (see the quirk code too) */
+ !strstr(drive->id->model, "Integrated Technology Express") &&
+ /* And beware of confused Maxtor drives that go "M0000000000"
+ "The SN# is garbage in the ID block..." [Eric] */
+ strncmp(drive->id->serial_no, "M0000000000000000000", 20) &&
+ strncmp(hwif->drives[0].id->serial_no, drive->id->serial_no, 20) == 0)
+ {
+ printk(KERN_WARNING "ide-probe: ignoring undecoded slave\n");
+ drive->present = 0;
+ }
+ }
if (drive->present && !hwif->present) {
hwif->present = 1;
if (hwif->chipset != ide_4drives ||
reply other threads:[~2004-09-06 15:33 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=20040906153304.GA6067@devserv.devel.redhat.com \
--to=alan@redhat.com \
--cc=akpm@osdl.org \
--cc=linux-ide@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).