From: Seiichi Ikarashi <ikarashi@miraclelinux.com>
To: Linux IDE <linux-ide@vger.kernel.org>
Subject: [PATCH] libata on SATA only (non-combined) & legcy mode
Date: Fri, 15 Jul 2005 16:02:19 +0900 [thread overview]
Message-ID: <20050715154003.B597.IKARASHI@miraclelinux.com> (raw)
Hi Jeff,
The libata driver cannot be loaded if a system has a CD-ROM drive
connected via SATA instead of PATA because this is not combined
mode and reserved no ports in quirk_intel_ide_combined() function.
I think SATA only (non-combined) && legacy mode should be treated
as same as such combined mode. How about following patch?
----------------------- Original Message -----------------------
--- linux-2.6.11.7/drivers/pci/quirks.c.orig 2005-04-08 03:57:08.000000000 +0900
+++ linux-2.6.11.7/drivers/pci/quirks.c 2005-07-15 15:19:21.000000000 +0900
@@ -1195,7 +1195,7 @@ static void __devinit quirk_intel_ide_co
else if (tmp == 0x6) /* bits 11x */
comb = (1 << 2); /* PATA port 0, SATA port 1 */
else
- return; /* not in combined mode */
+ comb = 0; /* not in combined mode */
} else {
WARN_ON((ich != 6) && (ich != 7));
tmp &= 0x3; /* interesting bits 1:0 */
@@ -1204,7 +1204,7 @@ static void __devinit quirk_intel_ide_co
else if (tmp & (1 << 1))
comb = (1 << 0); /* SATA port 0, PATA port 1 */
else
- return; /* not in combined mode */
+ comb = 0; /* not in combined mode */
}
/*
@@ -1224,8 +1224,13 @@ static void __devinit quirk_intel_ide_co
*/
if (comb == (1 << 0))
request_region(0x1f0, 8, "libata"); /* port 0 */
- else
+ else if (comb == (1 << 2))
request_region(0x170, 8, "libata"); /* port 1 */
+
+ if (comb == 0 && (prog & 0x5) == 0) { /* Legacy but SATA only */
+ request_region(0x1f0, 8, "libata"); /* port 0 */
+ request_region(0x170, 8, "libata"); /* port 1 */
+ }
}
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_ANY_ID, quirk_intel_ide_combined );
#endif /* CONFIG_SCSI_SATA */
--------------------- Original Message Ends --------------------
--
Seiichi Ikarashi <ikarashi@miraclelinux.com>
reply other threads:[~2005-07-15 7:02 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=20050715154003.B597.IKARASHI@miraclelinux.com \
--to=ikarashi@miraclelinux.com \
--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 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.