aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/pci/acpi.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-04-21 18:58:35 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-21 18:58:35 -0400
commitbda0c0afa7a694bb1459fd023515aca681e4d79a (patch)
treecd8b9d9811463de2065cbe79d59689082d6c53cf /arch/x86/pci/acpi.c
parent904e0ab54b7591b9cb01cfc0dbbedcc8bc0d949b (diff)
parentaf40b485ea2d957ae2f237ab0e33539ae8f29562 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/pci-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/pci-2.6: (42 commits) PCI: Change PCI subsystem MAINTAINER PCI: pci-iommu-iotlb-flushing-speedup PCI: pci_setup_bridge() mustn't be __devinit PCI: pci_bus_size_cardbus() mustn't be __devinit PCI: pci_scan_device() mustn't be __devinit PCI: pci_alloc_child_bus() mustn't be __devinit PCI: replace remaining __FUNCTION__ occurrences PCI: Hotplug: fakephp: Return success, not ENODEV, when bus rescan is triggered PCI: Hotplug: Fix leaks in IBM Hot Plug Controller Driver - ibmphp_init_devno() PCI: clean up resource alignment management PCI: aerdrv_acpi.c: remove unneeded NULL check PCI: Update VIA CX700 quirk PCI: Expose PCI VPD through sysfs PCI: iommu: iotlb flushing PCI: simplify quirk debug output PCI: iova RB tree setup tweak PCI: parisc: use generic pci_enable_resources() PCI: ppc: use generic pci_enable_resources() PCI: powerpc: use generic pci_enable_resources() PCI: ia64: use generic pci_enable_resources() ...
Diffstat (limited to 'arch/x86/pci/acpi.c')
-rw-r--r--arch/x86/pci/acpi.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/x86/pci/acpi.c b/arch/x86/pci/acpi.c
index 378136fb5044..2664cb3fc96c 100644
--- a/arch/x86/pci/acpi.c
+++ b/arch/x86/pci/acpi.c
@@ -151,7 +151,7 @@ adjust_transparent_bridge_resources(struct pci_bus *bus)
151 151
152static void 152static void
153get_current_resources(struct acpi_device *device, int busnum, 153get_current_resources(struct acpi_device *device, int busnum,
154 struct pci_bus *bus) 154 int domain, struct pci_bus *bus)
155{ 155{
156 struct pci_root_info info; 156 struct pci_root_info info;
157 size_t size; 157 size_t size;
@@ -168,10 +168,10 @@ get_current_resources(struct acpi_device *device, int busnum,
168 if (!info.res) 168 if (!info.res)
169 goto res_alloc_fail; 169 goto res_alloc_fail;
170 170
171 info.name = kmalloc(12, GFP_KERNEL); 171 info.name = kmalloc(16, GFP_KERNEL);
172 if (!info.name) 172 if (!info.name)
173 goto name_alloc_fail; 173 goto name_alloc_fail;
174 sprintf(info.name, "PCI Bus #%02x", busnum); 174 sprintf(info.name, "PCI Bus %04x:%02x", domain, busnum);
175 175
176 info.res_num = 0; 176 info.res_num = 0;
177 acpi_walk_resources(device->handle, METHOD_NAME__CRS, setup_resource, 177 acpi_walk_resources(device->handle, METHOD_NAME__CRS, setup_resource,
@@ -247,7 +247,7 @@ struct pci_bus * __devinit pci_acpi_scan_root(struct acpi_device *device, int do
247#endif 247#endif
248 248
249 if (bus && (pci_probe & PCI_USE__CRS)) 249 if (bus && (pci_probe & PCI_USE__CRS))
250 get_current_resources(device, busnum, bus); 250 get_current_resources(device, busnum, domain, bus);
251 251
252 return bus; 252 return bus;
253} 253}
@@ -278,8 +278,7 @@ static int __init pci_acpi_init(void)
278 printk(KERN_INFO "PCI: Routing PCI interrupts for all devices because \"pci=routeirq\" specified\n"); 278 printk(KERN_INFO "PCI: Routing PCI interrupts for all devices because \"pci=routeirq\" specified\n");
279 for_each_pci_dev(dev) 279 for_each_pci_dev(dev)
280 acpi_pci_irq_enable(dev); 280 acpi_pci_irq_enable(dev);
281 } else 281 }
282 printk(KERN_INFO "PCI: If a device doesn't work, try \"pci=routeirq\". If it helps, post a report\n");
283 282
284#ifdef CONFIG_X86_IO_APIC 283#ifdef CONFIG_X86_IO_APIC
285 if (acpi_ioapic) 284 if (acpi_ioapic)