diff options
| author | Bjorn Helgaas <bhelgaas@google.com> | 2012-09-13 11:08:02 -0400 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2012-09-13 11:08:02 -0400 |
| commit | 6dabee73d46bfafb8c588b21b14606914de97ee6 (patch) | |
| tree | 140f679ec718d022e9946d8534af5cd7646340c6 /drivers | |
| parent | 78890b5989d96ddce989cde929c45ceeded0fcaf (diff) | |
| parent | 769ae543dc8d5745e1ade88cbcf1271a96276fd2 (diff) | |
Merge branch 'pci/trivial' into next
* pci/trivial:
PCI: Drop duplicate const in DECLARE_PCI_FIXUP_SECTION
PCI: Drop bogus default from ARCH_SUPPORTS_MSI
PCI: cpqphp: Remove unreachable path
PCI: Remove bus number resource debug messages
PCI/AER: Print completion message at KERN_INFO to match starting message
PCI: Fix drivers/pci/pci.c kernel-doc warnings
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/pci/Kconfig | 1 | ||||
| -rw-r--r-- | drivers/pci/hotplug/cpqphp_ctrl.c | 21 | ||||
| -rw-r--r-- | drivers/pci/pci.c | 2 | ||||
| -rw-r--r-- | drivers/pci/pcie/aer/aerdrv_core.c | 6 | ||||
| -rw-r--r-- | drivers/pci/probe.c | 5 |
5 files changed, 4 insertions, 31 deletions
diff --git a/drivers/pci/Kconfig b/drivers/pci/Kconfig index 848bfb84c04c..6d51aa68ec7a 100644 --- a/drivers/pci/Kconfig +++ b/drivers/pci/Kconfig | |||
| @@ -3,7 +3,6 @@ | |||
| 3 | # | 3 | # |
| 4 | config ARCH_SUPPORTS_MSI | 4 | config ARCH_SUPPORTS_MSI |
| 5 | bool | 5 | bool |
| 6 | default n | ||
| 7 | 6 | ||
| 8 | config PCI_MSI | 7 | config PCI_MSI |
| 9 | bool "Message Signaled Interrupts (MSI and MSI-X)" | 8 | bool "Message Signaled Interrupts (MSI and MSI-X)" |
diff --git a/drivers/pci/hotplug/cpqphp_ctrl.c b/drivers/pci/hotplug/cpqphp_ctrl.c index e43908d9b5df..36112fe212d3 100644 --- a/drivers/pci/hotplug/cpqphp_ctrl.c +++ b/drivers/pci/hotplug/cpqphp_ctrl.c | |||
| @@ -2890,27 +2890,8 @@ static int configure_new_function(struct controller *ctrl, struct pci_func *func | |||
| 2890 | func->mem_head = mem_node; | 2890 | func->mem_head = mem_node; |
| 2891 | } else | 2891 | } else |
| 2892 | return -ENOMEM; | 2892 | return -ENOMEM; |
| 2893 | } else if ((temp_register & 0x0BL) == 0x04) { | ||
| 2894 | /* Map memory */ | ||
| 2895 | base = temp_register & 0xFFFFFFF0; | ||
| 2896 | base = ~base + 1; | ||
| 2897 | |||
| 2898 | dbg("CND: length = 0x%x\n", base); | ||
| 2899 | mem_node = get_resource(&(resources->mem_head), base); | ||
| 2900 | |||
| 2901 | /* allocate the resource to the board */ | ||
| 2902 | if (mem_node) { | ||
| 2903 | base = mem_node->base; | ||
| 2904 | |||
| 2905 | mem_node->next = func->mem_head; | ||
| 2906 | func->mem_head = mem_node; | ||
| 2907 | } else | ||
| 2908 | return -ENOMEM; | ||
| 2909 | } else if ((temp_register & 0x0BL) == 0x06) { | ||
| 2910 | /* Those bits are reserved, we can't handle this */ | ||
| 2911 | return 1; | ||
| 2912 | } else { | 2893 | } else { |
| 2913 | /* Requesting space below 1M */ | 2894 | /* Reserved bits or requesting space below 1M */ |
| 2914 | return NOT_ENOUGH_RESOURCES; | 2895 | return NOT_ENOUGH_RESOURCES; |
| 2915 | } | 2896 | } |
| 2916 | 2897 | ||
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 028bbc219859..54858838f098 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
| @@ -1491,7 +1491,7 @@ void pci_pme_wakeup_bus(struct pci_bus *bus) | |||
| 1491 | 1491 | ||
| 1492 | /** | 1492 | /** |
| 1493 | * pci_wakeup - Wake up a PCI device | 1493 | * pci_wakeup - Wake up a PCI device |
| 1494 | * @dev: Device to handle. | 1494 | * @pci_dev: Device to handle. |
| 1495 | * @ign: ignored parameter | 1495 | * @ign: ignored parameter |
| 1496 | */ | 1496 | */ |
| 1497 | static int pci_wakeup(struct pci_dev *pci_dev, void *ign) | 1497 | static int pci_wakeup(struct pci_dev *pci_dev, void *ign) |
diff --git a/drivers/pci/pcie/aer/aerdrv_core.c b/drivers/pci/pcie/aer/aerdrv_core.c index cd46d74ec806..06bad96af415 100644 --- a/drivers/pci/pcie/aer/aerdrv_core.c +++ b/drivers/pci/pcie/aer/aerdrv_core.c | |||
| @@ -509,14 +509,12 @@ static void do_recovery(struct pci_dev *dev, int severity) | |||
| 509 | "resume", | 509 | "resume", |
| 510 | report_resume); | 510 | report_resume); |
| 511 | 511 | ||
| 512 | dev_printk(KERN_DEBUG, &dev->dev, | 512 | dev_info(&dev->dev, "AER: Device recovery successful\n"); |
| 513 | "AER driver successfully recovered\n"); | ||
| 514 | return; | 513 | return; |
| 515 | 514 | ||
| 516 | failed: | 515 | failed: |
| 517 | /* TODO: Should kernel panic here? */ | 516 | /* TODO: Should kernel panic here? */ |
| 518 | dev_printk(KERN_DEBUG, &dev->dev, | 517 | dev_info(&dev->dev, "AER: Device recovery failed\n"); |
| 519 | "AER driver didn't recover\n"); | ||
| 520 | } | 518 | } |
| 521 | 519 | ||
| 522 | /** | 520 | /** |
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 3cdba8b3f816..23961117663f 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c | |||
| @@ -1748,11 +1748,6 @@ int pci_bus_insert_busn_res(struct pci_bus *b, int bus, int bus_max) | |||
| 1748 | "busn_res: can not insert %pR under %s%pR (conflicts with %s %pR)\n", | 1748 | "busn_res: can not insert %pR under %s%pR (conflicts with %s %pR)\n", |
| 1749 | res, pci_is_root_bus(b) ? "domain " : "", | 1749 | res, pci_is_root_bus(b) ? "domain " : "", |
| 1750 | parent_res, conflict->name, conflict); | 1750 | parent_res, conflict->name, conflict); |
| 1751 | else | ||
| 1752 | dev_printk(KERN_DEBUG, &b->dev, | ||
| 1753 | "busn_res: %pR is inserted under %s%pR\n", | ||
| 1754 | res, pci_is_root_bus(b) ? "domain " : "", | ||
| 1755 | parent_res); | ||
| 1756 | 1751 | ||
| 1757 | return conflict == NULL; | 1752 | return conflict == NULL; |
| 1758 | } | 1753 | } |
