diff options
| -rw-r--r-- | MAINTAINERS | 1 | ||||
| -rw-r--r-- | arch/cris/include/asm/pci.h | 1 | ||||
| -rw-r--r-- | arch/frv/mb93090-mb00/pci-frv.h | 1 | ||||
| -rw-r--r-- | arch/frv/mb93090-mb00/pci-vdk.c | 36 | ||||
| -rw-r--r-- | arch/mn10300/include/asm/pci.h | 1 | ||||
| -rw-r--r-- | arch/mn10300/kernel/setup.c | 3 | ||||
| -rw-r--r-- | arch/mn10300/unit-asb2305/pci-asb2305.h | 1 | ||||
| -rw-r--r-- | arch/mn10300/unit-asb2305/pci.c | 5 | ||||
| -rw-r--r-- | arch/x86/pci/acpi.c | 8 | ||||
| -rw-r--r-- | drivers/pci/msi.c | 6 | ||||
| -rw-r--r-- | drivers/pci/pci-driver.c | 11 | ||||
| -rw-r--r-- | drivers/pci/pci-sysfs.c | 33 | ||||
| -rw-r--r-- | drivers/pci/pci.c | 7 |
13 files changed, 29 insertions, 85 deletions
diff --git a/MAINTAINERS b/MAINTAINERS index bc6d82162ebe..906d440f1afe 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
| @@ -6338,6 +6338,7 @@ S: Supported | |||
| 6338 | F: Documentation/PCI/ | 6338 | F: Documentation/PCI/ |
| 6339 | F: drivers/pci/ | 6339 | F: drivers/pci/ |
| 6340 | F: include/linux/pci* | 6340 | F: include/linux/pci* |
| 6341 | F: arch/x86/pci/ | ||
| 6341 | 6342 | ||
| 6342 | PCI DRIVER FOR NVIDIA TEGRA | 6343 | PCI DRIVER FOR NVIDIA TEGRA |
| 6343 | M: Thierry Reding <thierry.reding@gmail.com> | 6344 | M: Thierry Reding <thierry.reding@gmail.com> |
diff --git a/arch/cris/include/asm/pci.h b/arch/cris/include/asm/pci.h index 146da904cdd8..f666734926d5 100644 --- a/arch/cris/include/asm/pci.h +++ b/arch/cris/include/asm/pci.h | |||
| @@ -11,7 +11,6 @@ | |||
| 11 | 11 | ||
| 12 | #define pcibios_assign_all_busses(void) 1 | 12 | #define pcibios_assign_all_busses(void) 1 |
| 13 | 13 | ||
| 14 | extern unsigned long pci_mem_start; | ||
| 15 | #define PCIBIOS_MIN_IO 0x1000 | 14 | #define PCIBIOS_MIN_IO 0x1000 |
| 16 | #define PCIBIOS_MIN_MEM 0x10000000 | 15 | #define PCIBIOS_MIN_MEM 0x10000000 |
| 17 | 16 | ||
diff --git a/arch/frv/mb93090-mb00/pci-frv.h b/arch/frv/mb93090-mb00/pci-frv.h index 76c4e73d643d..a7e487fe76ed 100644 --- a/arch/frv/mb93090-mb00/pci-frv.h +++ b/arch/frv/mb93090-mb00/pci-frv.h | |||
| @@ -30,7 +30,6 @@ void pcibios_resource_survey(void); | |||
| 30 | 30 | ||
| 31 | /* pci-vdk.c */ | 31 | /* pci-vdk.c */ |
| 32 | 32 | ||
| 33 | extern int __nongpreldata pcibios_last_bus; | ||
| 34 | extern struct pci_ops *__nongpreldata pci_root_ops; | 33 | extern struct pci_ops *__nongpreldata pci_root_ops; |
| 35 | 34 | ||
| 36 | /* pci-irq.c */ | 35 | /* pci-irq.c */ |
diff --git a/arch/frv/mb93090-mb00/pci-vdk.c b/arch/frv/mb93090-mb00/pci-vdk.c index deb67843693c..efa5d65b0007 100644 --- a/arch/frv/mb93090-mb00/pci-vdk.c +++ b/arch/frv/mb93090-mb00/pci-vdk.c | |||
| @@ -25,7 +25,6 @@ | |||
| 25 | 25 | ||
| 26 | unsigned int __nongpreldata pci_probe = 1; | 26 | unsigned int __nongpreldata pci_probe = 1; |
| 27 | 27 | ||
| 28 | int __nongpreldata pcibios_last_bus = -1; | ||
| 29 | struct pci_ops *__nongpreldata pci_root_ops; | 28 | struct pci_ops *__nongpreldata pci_root_ops; |
| 30 | 29 | ||
| 31 | /* | 30 | /* |
| @@ -220,37 +219,6 @@ static struct pci_ops * __init pci_check_direct(void) | |||
| 220 | } | 219 | } |
| 221 | 220 | ||
| 222 | /* | 221 | /* |
| 223 | * Discover remaining PCI buses in case there are peer host bridges. | ||
| 224 | * We use the number of last PCI bus provided by the PCI BIOS. | ||
| 225 | */ | ||
| 226 | static void __init pcibios_fixup_peer_bridges(void) | ||
| 227 | { | ||
| 228 | struct pci_bus bus; | ||
| 229 | struct pci_dev dev; | ||
| 230 | int n; | ||
| 231 | u16 l; | ||
| 232 | |||
| 233 | if (pcibios_last_bus <= 0 || pcibios_last_bus >= 0xff) | ||
| 234 | return; | ||
| 235 | printk("PCI: Peer bridge fixup\n"); | ||
| 236 | for (n=0; n <= pcibios_last_bus; n++) { | ||
| 237 | if (pci_find_bus(0, n)) | ||
| 238 | continue; | ||
| 239 | bus.number = n; | ||
| 240 | bus.ops = pci_root_ops; | ||
| 241 | dev.bus = &bus; | ||
| 242 | for(dev.devfn=0; dev.devfn<256; dev.devfn += 8) | ||
| 243 | if (!pci_read_config_word(&dev, PCI_VENDOR_ID, &l) && | ||
| 244 | l != 0x0000 && l != 0xffff) { | ||
| 245 | printk("Found device at %02x:%02x [%04x]\n", n, dev.devfn, l); | ||
| 246 | printk("PCI: Discovered peer bus %02x\n", n); | ||
| 247 | pci_scan_bus(n, pci_root_ops, NULL); | ||
| 248 | break; | ||
| 249 | } | ||
| 250 | } | ||
| 251 | } | ||
| 252 | |||
| 253 | /* | ||
| 254 | * Exceptions for specific devices. Usually work-arounds for fatal design flaws. | 222 | * Exceptions for specific devices. Usually work-arounds for fatal design flaws. |
| 255 | */ | 223 | */ |
| 256 | 224 | ||
| @@ -418,7 +386,6 @@ int __init pcibios_init(void) | |||
| 418 | pci_scan_root_bus(NULL, 0, pci_root_ops, NULL, &resources); | 386 | pci_scan_root_bus(NULL, 0, pci_root_ops, NULL, &resources); |
| 419 | 387 | ||
| 420 | pcibios_irq_init(); | 388 | pcibios_irq_init(); |
| 421 | pcibios_fixup_peer_bridges(); | ||
| 422 | pcibios_fixup_irqs(); | 389 | pcibios_fixup_irqs(); |
| 423 | pcibios_resource_survey(); | 390 | pcibios_resource_survey(); |
| 424 | 391 | ||
| @@ -432,9 +399,6 @@ char * __init pcibios_setup(char *str) | |||
| 432 | if (!strcmp(str, "off")) { | 399 | if (!strcmp(str, "off")) { |
| 433 | pci_probe = 0; | 400 | pci_probe = 0; |
| 434 | return NULL; | 401 | return NULL; |
| 435 | } else if (!strncmp(str, "lastbus=", 8)) { | ||
| 436 | pcibios_last_bus = simple_strtol(str+8, NULL, 0); | ||
| 437 | return NULL; | ||
| 438 | } | 402 | } |
| 439 | return str; | 403 | return str; |
| 440 | } | 404 | } |
diff --git a/arch/mn10300/include/asm/pci.h b/arch/mn10300/include/asm/pci.h index 6f31cc0f1a87..166323824683 100644 --- a/arch/mn10300/include/asm/pci.h +++ b/arch/mn10300/include/asm/pci.h | |||
| @@ -44,7 +44,6 @@ extern void unit_pci_init(void); | |||
| 44 | #define pcibios_assign_all_busses() 0 | 44 | #define pcibios_assign_all_busses() 0 |
| 45 | #endif | 45 | #endif |
| 46 | 46 | ||
| 47 | extern unsigned long pci_mem_start; | ||
| 48 | #define PCIBIOS_MIN_IO 0xBE000004 | 47 | #define PCIBIOS_MIN_IO 0xBE000004 |
| 49 | #define PCIBIOS_MIN_MEM 0xB8000000 | 48 | #define PCIBIOS_MIN_MEM 0xB8000000 |
| 50 | 49 | ||
diff --git a/arch/mn10300/kernel/setup.c b/arch/mn10300/kernel/setup.c index ebac9c11f796..2ad7f32fa122 100644 --- a/arch/mn10300/kernel/setup.c +++ b/arch/mn10300/kernel/setup.c | |||
| @@ -35,9 +35,6 @@ | |||
| 35 | 35 | ||
| 36 | struct mn10300_cpuinfo boot_cpu_data; | 36 | struct mn10300_cpuinfo boot_cpu_data; |
| 37 | 37 | ||
| 38 | /* For PCI or other memory-mapped resources */ | ||
| 39 | unsigned long pci_mem_start = 0x18000000; | ||
| 40 | |||
| 41 | static char __initdata cmd_line[COMMAND_LINE_SIZE]; | 38 | static char __initdata cmd_line[COMMAND_LINE_SIZE]; |
| 42 | char redboot_command_line[COMMAND_LINE_SIZE] = | 39 | char redboot_command_line[COMMAND_LINE_SIZE] = |
| 43 | "console=ttyS0,115200 root=/dev/mtdblock3 rw"; | 40 | "console=ttyS0,115200 root=/dev/mtdblock3 rw"; |
diff --git a/arch/mn10300/unit-asb2305/pci-asb2305.h b/arch/mn10300/unit-asb2305/pci-asb2305.h index 7fa66a0e4624..9e17aca5a2a1 100644 --- a/arch/mn10300/unit-asb2305/pci-asb2305.h +++ b/arch/mn10300/unit-asb2305/pci-asb2305.h | |||
| @@ -35,7 +35,6 @@ extern void pcibios_resource_survey(void); | |||
| 35 | 35 | ||
| 36 | /* pci.c */ | 36 | /* pci.c */ |
| 37 | 37 | ||
| 38 | extern int pcibios_last_bus; | ||
| 39 | extern struct pci_ops *pci_root_ops; | 38 | extern struct pci_ops *pci_root_ops; |
| 40 | 39 | ||
| 41 | extern struct irq_routing_table *pcibios_get_irq_routing_table(void); | 40 | extern struct irq_routing_table *pcibios_get_irq_routing_table(void); |
diff --git a/arch/mn10300/unit-asb2305/pci.c b/arch/mn10300/unit-asb2305/pci.c index e37fac0461f3..6b4339f8c9c2 100644 --- a/arch/mn10300/unit-asb2305/pci.c +++ b/arch/mn10300/unit-asb2305/pci.c | |||
| @@ -24,7 +24,6 @@ | |||
| 24 | 24 | ||
| 25 | unsigned int pci_probe = 1; | 25 | unsigned int pci_probe = 1; |
| 26 | 26 | ||
| 27 | int pcibios_last_bus = -1; | ||
| 28 | struct pci_ops *pci_root_ops; | 27 | struct pci_ops *pci_root_ops; |
| 29 | 28 | ||
| 30 | /* | 29 | /* |
| @@ -392,10 +391,6 @@ char *__init pcibios_setup(char *str) | |||
| 392 | if (!strcmp(str, "off")) { | 391 | if (!strcmp(str, "off")) { |
| 393 | pci_probe = 0; | 392 | pci_probe = 0; |
| 394 | return NULL; | 393 | return NULL; |
| 395 | |||
| 396 | } else if (!strncmp(str, "lastbus=", 8)) { | ||
| 397 | pcibios_last_bus = simple_strtol(str+8, NULL, 0); | ||
| 398 | return NULL; | ||
| 399 | } | 394 | } |
| 400 | 395 | ||
| 401 | return str; | 396 | return str; |
diff --git a/arch/x86/pci/acpi.c b/arch/x86/pci/acpi.c index b30e937689d6..7fb24e53d4c8 100644 --- a/arch/x86/pci/acpi.c +++ b/arch/x86/pci/acpi.c | |||
| @@ -354,12 +354,12 @@ static void coalesce_windows(struct pci_root_info *info, unsigned long type) | |||
| 354 | * the kernel resource tree doesn't allow overlaps. | 354 | * the kernel resource tree doesn't allow overlaps. |
| 355 | */ | ||
