diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2005-12-13 11:48:08 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-12-13 11:48:08 -0800 |
commit | eff9e116197faa36249e2d68a76342cd380288b1 (patch) | |
tree | 9a1485f50422a07df2767fb672b2dafed7456865 /pci | |
parent | 8293af088e41cf8106a2e747b4ed4479858699b5 (diff) | |
download | patches-eff9e116197faa36249e2d68a76342cd380288b1.tar.gz |
usb and pci patches added
Diffstat (limited to 'pci')
-rw-r--r-- | pci/pci-export-pci_cfg_space_size.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pci/pci-export-pci_cfg_space_size.patch b/pci/pci-export-pci_cfg_space_size.patch new file mode 100644 index 0000000000000..7a67034545a7b --- /dev/null +++ b/pci/pci-export-pci_cfg_space_size.patch @@ -0,0 +1,41 @@ +From benh@kernel.crashing.org Mon Dec 12 23:16:21 2005 +Subject: [PATCH] PCI: Export pci_cfg_space_size +From: Benjamin Herrenschmidt <benh@kernel.crashing.org> +To: Greg KH <greg@kroah.com>, Paul Mackerras <paulus@samba.org> +Cc: linux-pci <linux-pci@atrey.karlin.mff.cuni.cz>, linuxppc64-dev <linuxppc64-dev@ozlabs.org>, linuxppc-dev list <linuxppc-dev@ozlabs.org> +Date: Tue, 13 Dec 2005 18:09:16 +1100 +Message-Id: <1134457757.6989.195.camel@gaston> + +The powerpc PCI code sets up the PCI tree without doing config space +accesses in most cases, from the firmware tree. However, it still wants +to call pci_cfg_space_size() under some conditions, thus it needs to +be made non-static (though I don't see a point to export it to modules). + +Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> +Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> +--- + drivers/pci/probe.c | 2 +- + include/linux/pci.h | 1 + + 2 files changed, 2 insertions(+), 1 deletion(-) + +--- gregkh-2.6.orig/drivers/pci/probe.c ++++ gregkh-2.6/drivers/pci/probe.c +@@ -717,7 +717,7 @@ static void pci_release_dev(struct devic + * reading the dword at 0x100 which must either be 0 or a valid extended + * capability header. + */ +-static int pci_cfg_space_size(struct pci_dev *dev) ++int pci_cfg_space_size(struct pci_dev *dev) + { + int pos; + u32 status; +--- gregkh-2.6.orig/include/linux/pci.h ++++ gregkh-2.6/include/linux/pci.h +@@ -514,6 +514,7 @@ int pci_scan_bridge(struct pci_bus *bus, + + void pci_walk_bus(struct pci_bus *top, void (*cb)(struct pci_dev *, void *), + void *userdata); ++int pci_cfg_space_size(struct pci_dev *dev); + + /* kmem_cache style wrapper around pci_alloc_consistent() */ + |