diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-13 18:45:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-13 18:45:47 -0400 |
commit | 3be1b98e073bdd4c1bb3144201a927c4a21330ba (patch) | |
tree | 6eb0619a4715d8f83388e8fd7a56f58d1c99f6cf /arch/sparc | |
parent | 392b46f31f43a71c5391eb9cffe304979d2d6c30 (diff) | |
parent | 5468d5a64bf1e002e5081fa280186d0eba09fa0e (diff) |
Merge tag 'pci-v4.1-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci
Pull PCI changes from Bjorn Helgaas:
"Enumeration
- Read capability list as dwords, not bytes (Sean O. Stalley)
Resource management
- Don't check for PNP overlaps with unassigned PCI BARs (Bjorn Helgaas)
- Mark invalid BARs as unassigned (Bjorn Helgaas)
- Show driver, BAR#, and resource on pci_ioremap_bar() failure (Bjorn Helgaas)
- Fail pci_ioremap_bar() on unassigned resources (Bjorn Helgaas)
- Assign resources before drivers claim devices (Yijing Wang)
- Claim bus resources before pci_bus_add_devices() (Yijing Wang)
Power management
- Optimize device state transition delays (Aaron Lu)
- Don't clear ASPM bits when the FADT declares it's unsupported (Matthew Garrett)
Virtualization
- Add ACS quirks for Intel 1G NICs (Alex Williamson)
IOMMU
- Add ptr to OF node arg to of_iommu_configure() (Murali Karicheri)
- Move of_dma_configure() to device.c to help re-use (Murali Karicheri)
- Fix size when dma-range is not used (Murali Karicheri)
- Add helper functions pci_get[put]_host_bridge_device() (Murali Karicheri)
- Add of_pci_dma_configure() to update DMA configuration (Murali Karicheri)
- Update DMA configuration from DT (Murali Karicheri)
- dma-mapping: limit IOMMU mapping size (Murali Karicheri)
- Calculate device DMA masks based on DT dma-range size (Murali Karicheri)
ARM Versatile host bridge driver
- Check for devm_ioremap_resource() failures (Jisheng Zhang)
Broadcom iProc host bridge driver
- Add Broadcom iProc PCIe driver (Ray Jui)
Marvell MVEBU host bridge driver
- Add suspend/resume support (Thomas Petazzoni)
Renesas R-Car host bridge driver
- Fix position of MSI enable bit (Nobuhiro Iwamatsu)
- Write zeroes to reserved PCIEPARL bits (Nobuhiro Iwamatsu)
- Change PCIEPARL and PCIEPARH to PCIEPALR and PCIEPAUR (Nobuhiro Iwamatsu)
- Verify that mem_res is 64K-aligned (Nobuhiro Iwamatsu)
Samsung Exynos host bridge driver
- Fix INTx enablement statement termination error (Jaehoon Chung)
Miscellaneous
- Make a shareable UUID for PCI firmware ACPI _DSM (Aaron Lu)
- Clarify policy for vendor IDs in pci.txt (Michael S. Tsirkin)"
* tag 'pci-v4.1-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: (36 commits)
PCI: Read capability list as dwords, not bytes
PCI: layerscape: Simplify platform_get_resource_byname() failure checking
PCI: keystone: Don't dereference possible NULL pointer
PCI: versatile: Check for devm_ioremap_resource() failures
PCI: Don't clear ASPM bits when the FADT declares it's unsupported
PCI: Clarify policy for vendor IDs in pci.txt
PCI/ACPI: Optimize device state transition delays
PCI: Export pci_find_host_bridge() for use inside PCI core
PCI: Make a shareable UUID for PCI firmware ACPI _DSM
PCI: Fix typo in Thunderbolt kernel message
PCI: exynos: Fix INTx enablement statement termination error
PCI: iproc: Add Broadcom iProc PCIe support
PCI: iproc: Add DT docs for Broadcom iProc PCIe driver
PCI: Export symbols required for loadable host driver modules
PCI: Add ACS quirks for Intel 1G NICs
PCI: mvebu: Add suspend/resume support
PCI: Cleanup control flow
sparc/PCI: Claim bus resources before pci_bus_add_devices()
PCI: Assign resources before drivers claim devices (pci_scan_root_bus())
PCI: Fail pci_ioremap_bar() on unassigned resources
...
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/kernel/leon_pci.c | 16 | ||||
-rw-r--r-- | arch/sparc/kernel/pci.c | 3 | ||||
-rw-r--r-- | arch/sparc/kernel/pcic.c | 4 |
3 files changed, 14 insertions, 9 deletions
diff --git a/arch/sparc/kernel/leon_pci.c b/arch/sparc/kernel/leon_pci.c index 899b7203a4e4..4371f72ff025 100644 --- a/arch/sparc/kernel/leon_pci.c +++ b/arch/sparc/kernel/leon_pci.c | |||
@@ -34,15 +34,17 @@ void leon_pci_init(struct platform_device *ofdev, struct leon_pci_info *info) | |||
34 | 34 | ||
35 | root_bus = pci_scan_root_bus(&ofdev->dev, 0, info->ops, info, | 35 | root_bus = pci_scan_root_bus(&ofdev->dev, 0, info->ops, info, |
36 | &resources); | 36 | &resources); |
37 | if (root_bus) { | 37 | if (!root_bus) { |
38 | /* Setup IRQs of all devices using custom routines */ | ||
39 | pci_fixup_irqs(pci_common_swizzle, info->map_irq); | ||
40 | |||
41 | /* Assign devices with resources */ | ||
42 | pci_assign_unassigned_resources(); | ||
43 | } else { | ||
44 | pci_free_resource_list(&resources); | 38 | pci_free_resource_list(&resources); |
39 | return; | ||
45 | } | 40 | } |
41 | |||
42 | /* Setup IRQs of all devices using custom routines */ | ||
43 | pci_fixup_irqs(pci_common_swizzle, info->map_irq); | ||
44 | |||
45 | /* Assign devices with resources */ | ||
46 | pci_assign_unassigned_resources(); | ||
47 | pci_bus_add_devices(root_bus); | ||
46 | } | 48 | } |
47 | 49 | ||
48 | void pcibios_fixup_bus(struct pci_bus *pbus) | 50 | void pcibios_fixup_bus(struct pci_bus *pbus) |
diff --git a/arch/sparc/kernel/pci.c b/arch/sparc/kernel/pci.c index b36365f49478..6f7251fd2eab 100644 --- a/arch/sparc/kernel/pci.c +++ b/arch/sparc/kernel/pci.c | |||
@@ -674,11 +674,10 @@ struct pci_bus *pci_scan_one_pbm(struct pci_pbm_info *pbm, | |||
674 | } | 674 | } |
675 | 675 | ||
676 | pci_of_scan_bus(pbm, node, bus); | 676 | pci_of_scan_bus(pbm, node, bus); |
677 | pci_bus_add_devices(bus); | ||
678 | pci_bus_register_of_sysfs(bus); | 677 | pci_bus_register_of_sysfs(bus); |
679 | 678 | ||
680 | pci_claim_bus_resources(bus); | 679 | pci_claim_bus_resources(bus); |
681 | 680 | pci_bus_add_devices(bus); | |
682 | return bus; | 681 | return bus; |
683 | } | 682 | } |
684 | 683 | ||
diff --git a/arch/sparc/kernel/pcic.c b/arch/sparc/kernel/pcic.c index 6cc78c213c01..24384e1dc33d 100644 --- a/arch/sparc/kernel/pcic.c +++ b/arch/sparc/kernel/pcic.c | |||
@@ -391,12 +391,16 @@ static void __init pcic_pbm_scan_bus(struct linux_pcic *pcic) | |||
391 | struct linux_pbm_info *pbm = &pcic->pbm; | 391 | struct linux_pbm_info *pbm = &pcic->pbm; |
392 | 392 | ||
393 | pbm->pci_bus = pci_scan_bus(pbm->pci_first_busno, &pcic_ops, pbm); | 393 | pbm->pci_bus = pci_scan_bus(pbm->pci_first_busno, &pcic_ops, pbm); |
394 | if (!pbm->pci_bus) | ||
395 | return; | ||
396 | |||
394 | #if 0 /* deadwood transplanted from sparc64 */ | 397 | #if 0 /* deadwood transplanted from sparc64 */ |
395 | pci_fill_in_pbm_cookies(pbm->pci_bus, pbm, pbm->prom_node); | 398 | pci_fill_in_pbm_cookies(pbm->pci_bus, pbm, pbm->prom_node); |
396 | pci_record_assignments(pbm, pbm->pci_bus); | 399 | pci_record_assignments(pbm, pbm->pci_bus); |
397 | pci_assign_unassigned(pbm, pbm->pci_bus); | 400 | pci_assign_unassigned(pbm, pbm->pci_bus); |
398 | pci_fixup_irq(pbm, pbm->pci_bus); | 401 | pci_fixup_irq(pbm, pbm->pci_bus); |
399 | #endif | 402 | #endif |
403 | pci_bus_add_devices(pbm->pci_bus); | ||
400 | } | 404 | } |
401 | 405 | ||
402 | /* | 406 | /* |