From: Daniel Ritz <daniel.ritz-ml@swissonline.ch>
To: Greg KH <gregkh@suse.de>, Andrew Morton <akpm@osdl.org>
Cc: "linux-kernel" <linux-kernel@vger.kernel.org>,
"linux-pci" <linux-pci@atrey.karlin.mff.cuni.cz>,
Marcus Better <marcus@better.se>
Subject: [PATCH] PCI: use PCI_BIOS as last fallback
Date: Wed, 2 Aug 2006 19:36:40 +0200 [thread overview]
Message-ID: <200608021936.41102.daniel.ritz-ml@swissonline.ch> (raw)
[PATCH] PCI: use PCI_BIOS as last fallback
there was a change in 2.6.17 which affected the order in which the PCI access
methods are probed. this gives regressions on some machines with broken BIOS.
the problem is that PCI_BIOS sometimes reports the last bus wrong, leaving cardbus
non-funcational. previously those system worked fine with direct access.
fix it by chaning the order of the probing, having PCI_BIOS as the last fallback.
Signed-off-by: Daniel Ritz <daniel.ritz@gmx.ch>
diff --git a/arch/i386/pci/init.c b/arch/i386/pci/init.c
index c7650a7..caeefd4 100644
--- a/arch/i386/pci/init.c
+++ b/arch/i386/pci/init.c
@@ -11,13 +11,13 @@ #ifdef CONFIG_PCI_MMCONFIG
#endif
if (raw_pci_ops)
return 0;
-#ifdef CONFIG_PCI_BIOS
- pci_pcbios_init();
-#endif
- if (raw_pci_ops)
- return 0;
#ifdef CONFIG_PCI_DIRECT
pci_direct_init();
+ if (raw_pci_ops)
+ return 0;
+#endif
+#ifdef CONFIG_PCI_BIOS
+ pci_pcbios_init();
#endif
return 0;
}
reply other threads:[~2006-08-02 17:37 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=200608021936.41102.daniel.ritz-ml@swissonline.ch \
--to=daniel.ritz-ml@swissonline.ch \
--cc=akpm@osdl.org \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@atrey.karlin.mff.cuni.cz \
--cc=marcus@better.se \
/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
all inboxes | Powered by JetHome®