diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-24 19:17:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-24 19:17:07 -0400 |
commit | 6dd53aa4563a2c69e80a24d2cc68d484b5ea2891 (patch) | |
tree | 0cca9f65984b524527910960d972fc6ef85fac88 /arch/powerpc/kernel/pci-common.c | |
parent | f14121ab35912e3d2e57ac9a4ce1f9d4b7baeffb (diff) | |
parent | 63b96f7baeba71966c723912c3f8f0274577f877 (diff) |
Merge tag 'for-3.6' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci
Pull PCI changes from Bjorn Helgaas:
"Host bridge hotplug:
- Add MMCONFIG support for hot-added host bridges (Jiang Liu)
Device hotplug:
- Move fixups from __init to __devinit (Sebastian Andrzej Siewior)
- Call FINAL fixups for hot-added devices, too (Myron Stowe)
- Factor out generic code for P2P bridge hot-add (Yinghai Lu)
- Remove all functions in a slot, not just those with _EJx (Amos
Kong)
Dynamic resource management:
- Track bus number allocation (struct resource tree per domain)
(Yinghai Lu)
- Make P2P bridge 1K I/O windows work with resource reassignment
(Bjorn Helgaas, Yinghai Lu)
- Disable decoding while updating 64-bit BARs (Bjorn Helgaas)
Power management:
- Add PCIe runtime D3cold support (Huang Ying)
Virtualization:
- Add VFIO infrastructure (ACS, DMA source ID quirks) (Alex
Williamson)
- Add quirks for devices with broken INTx masking (Jan Kiszka)
Miscellaneous:
- Fix some PCI Express capability version issues (Myron Stowe)
- Factor out some arch code with a weak, generic, pcibios_setup()
(Myron Stowe)"
* tag 'for-3.6' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: (122 commits)
PCI: hotplug: ensure a consistent return value in error case
PCI: fix undefined reference to 'pci_fixup_final_inited'
PCI: build resource code for M68K architecture
PCI: pciehp: remove unused pciehp_get_max_lnk_width(), pciehp_get_cur_lnk_width()
PCI: reorder __pci_assign_resource() (no change)
PCI: fix truncation of resource size to 32 bits
PCI: acpiphp: merge acpiphp_debug and debug
PCI: acpiphp: remove unused res_lock
sparc/PCI: replace pci_cfg_fake_ranges() with pci_read_bridge_bases()
PCI: call final fixups hot-added devices
PCI: move final fixups from __init to __devinit
x86/PCI: move final fixups from __init to __devinit
MIPS/PCI: move final fixups from __init to __devinit
PCI: support sizing P2P bridge I/O windows with 1K granularity
PCI: reimplement P2P bridge 1K I/O windows (Intel P64H2)
PCI: disable MEM decoding while updating 64-bit MEM BARs
PCI: leave MEM and IO decoding disabled during 64-bit BAR sizing, too
PCI: never discard enable/suspend/resume_early/resume fixups
PCI: release temporary reference in __nv_msi_ht_cap_quirk()
PCI: restructure 'pci_do_fixups()'
...
Diffstat (limited to 'arch/powerpc/kernel/pci-common.c')
-rw-r--r-- | arch/powerpc/kernel/pci-common.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c index edef9afd8858..2aa04f29e1de 100644 --- a/arch/powerpc/kernel/pci-common.c +++ b/arch/powerpc/kernel/pci-common.c | |||
@@ -200,11 +200,6 @@ int pcibios_add_platform_entries(struct pci_dev *pdev) | |||
200 | return device_create_file(&pdev->dev, &dev_attr_devspec); | 200 | return device_create_file(&pdev->dev, &dev_attr_devspec); |
201 | } | 201 | } |
202 | 202 | ||
203 | char __devinit *pcibios_setup(char *str) | ||
204 | { | ||
205 | return str; | ||
206 | } | ||
207 | |||
208 | /* | 203 | /* |
209 | * Reads the interrupt pin to determine if interrupt is use by card. | 204 | * Reads the interrupt pin to determine if interrupt is use by card. |
210 | * If the interrupt is used, then gets the interrupt line from the | 205 | * If the interrupt is used, then gets the interrupt line from the |
@@ -1635,6 +1630,11 @@ void __devinit pcibios_scan_phb(struct pci_controller *hose) | |||
1635 | /* Wire up PHB bus resources */ | 1630 | /* Wire up PHB bus resources */ |
1636 | pcibios_setup_phb_resources(hose, &resources); | 1631 | pcibios_setup_phb_resources(hose, &resources); |
1637 | 1632 | ||
1633 | hose->busn.start = hose->first_busno; | ||
1634 | hose->busn.end = hose->last_busno; | ||
1635 | hose->busn.flags = IORESOURCE_BUS; | ||
1636 | pci_add_resource(&resources, &hose->busn); | ||
1637 | |||
1638 | /* Create an empty bus for the toplevel */ | 1638 | /* Create an empty bus for the toplevel */ |
1639 | bus = pci_create_root_bus(hose->parent, hose->first_busno, | 1639 | bus = pci_create_root_bus(hose->parent, hose->first_busno, |
1640 | hose->ops, hose, &resources); | 1640 | hose->ops, hose, &resources); |
@@ -1651,13 +1651,14 @@ void __devinit pcibios_scan_phb(struct pci_controller *hose) | |||
1651 | if (node && ppc_md.pci_probe_mode) | 1651 | if (node && ppc_md.pci_probe_mode) |
1652 | mode = ppc_md.pci_probe_mode(bus); | 1652 | mode = ppc_md.pci_probe_mode(bus); |
1653 | pr_debug(" probe mode: %d\n", mode); | 1653 | pr_debug(" probe mode: %d\n", mode); |
1654 | if (mode == PCI_PROBE_DEVTREE) { | 1654 | if (mode == PCI_PROBE_DEVTREE) |
1655 | bus->subordinate = hose->last_busno; | ||
1656 | of_scan_bus(node, bus); | 1655 | of_scan_bus(node, bus); |
1657 | } | ||
1658 | 1656 | ||
1659 | if (mode == PCI_PROBE_NORMAL) | 1657 | if (mode == PCI_PROBE_NORMAL) { |
1660 | hose->last_busno = bus->subordinate = pci_scan_child_bus(bus); | 1658 | pci_bus_update_busn_res_end(bus, 255); |
1659 | hose->last_busno = pci_scan_child_bus(bus); | ||
1660 | pci_bus_update_busn_res_end(bus, hose->last_busno); | ||
1661 | } | ||
1661 | 1662 | ||
1662 | /* Platform gets a chance to do some global fixups before | 1663 | /* Platform gets a chance to do some global fixups before |
1663 | * we proceed to resource allocation | 1664 | * we proceed to resource allocation |