From d13eeb47695992621d9beabe30dcb73a26ca8a31 Mon Sep 17 00:00:00 2001 From: nico Date: Mon, 25 Jul 2005 15:40:23 +0000 Subject: add preliminary support for soekris boards git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1564 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../linux/linux-2.4/patches/soekris/003-mgeode-pci.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 openwrt/target/linux/linux-2.4/patches/soekris/003-mgeode-pci.patch (limited to 'openwrt/target/linux/linux-2.4/patches/soekris/003-mgeode-pci.patch') diff --git a/openwrt/target/linux/linux-2.4/patches/soekris/003-mgeode-pci.patch b/openwrt/target/linux/linux-2.4/patches/soekris/003-mgeode-pci.patch new file mode 100644 index 000000000..eb6594ec8 --- /dev/null +++ b/openwrt/target/linux/linux-2.4/patches/soekris/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); -- cgit v1.2.3