aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/linux-2.4/patches/x86/003-mgeode-pci.patch
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2005-10-23 18:47:07 +0000
committerNicolas Thill <nico@openwrt.org>2005-10-23 18:47:07 +0000
commit4e6c8d29289498615d76b98416dffbed17dc1c46 (patch)
treec45f473b69eb028554f983c82bf247220fd9dcef /target/linux/linux-2.4/patches/x86/003-mgeode-pci.patch
parent69586bf8d1c231d1ef57e0dfa3f43a1d6481bc90 (diff)
downloadmaster-187ad058-4e6c8d29289498615d76b98416dffbed17dc1c46.tar.gz
master-187ad058-4e6c8d29289498615d76b98416dffbed17dc1c46.tar.bz2
master-187ad058-4e6c8d29289498615d76b98416dffbed17dc1c46.zip
rename soekris port to x86
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2285 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/linux-2.4/patches/x86/003-mgeode-pci.patch')
-rw-r--r--target/linux/linux-2.4/patches/x86/003-mgeode-pci.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/linux-2.4/patches/x86/003-mgeode-pci.patch b/target/linux/linux-2.4/patches/x86/003-mgeode-pci.patch
new file mode 100644
index 0000000000..eb6594ec84
--- /dev/null
+++ b/target/linux/linux-2.4/patches/x86/003-mgeode-pci.patch
@@ -0,0 +1,14 @@
+diff -Nur linux-2.4.29/drivers/pci/pci.c linux-2.4.29_geode/drivers/pci/pci.c
+--- linux-2.4.29/drivers/pci/pci.c Wed Nov 17 12:54:21 2004
++++ linux-2.4.29_geode/drivers/pci/pci.c Tue Feb 15 23:41:54 2005
+@@ -1486,6 +1486,10 @@
+ for (func = 0; func < 8; func++, temp->devfn++) {
+ if (pci_read_config_byte(temp, PCI_HEADER_TYPE, &hdr_type))
+ continue;
++#ifdef CONFIG_MGEODE
++ if (hdr_type & 0x7f > PCI_HEADER_TYPE_CARDBUS)
++ continue;
++#endif
+ temp->hdr_type = hdr_type & 0x7f;
+
+ dev = pci_scan_device(temp);