diff options
-rw-r--r-- | drivers/acpi/pci_root.c | 9 | ||||
-rw-r--r-- | drivers/pci/pcie/portdrv_core.c | 5 |
2 files changed, 8 insertions, 6 deletions
diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c index c7358dd68b3..f911a2f8cc3 100644 --- a/drivers/acpi/pci_root.c +++ b/drivers/acpi/pci_root.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <linux/pm_runtime.h> | 32 | #include <linux/pm_runtime.h> |
33 | #include <linux/pci.h> | 33 | #include <linux/pci.h> |
34 | #include <linux/pci-acpi.h> | 34 | #include <linux/pci-acpi.h> |
35 | #include <linux/pci-aspm.h> | ||
35 | #include <linux/acpi.h> | 36 | #include <linux/acpi.h> |
36 | #include <linux/slab.h> | 37 | #include <linux/slab.h> |
37 | #include <acpi/acpi_bus.h> | 38 | #include <acpi/acpi_bus.h> |
@@ -591,12 +592,16 @@ static int __devinit acpi_pci_root_add(struct acpi_device *device) | |||
591 | 592 | ||
592 | status = acpi_pci_osc_control_set(device->handle, &flags, | 593 | status = acpi_pci_osc_control_set(device->handle, &flags, |
593 | OSC_PCI_EXPRESS_CAP_STRUCTURE_CONTROL); | 594 | OSC_PCI_EXPRESS_CAP_STRUCTURE_CONTROL); |
594 | if (ACPI_SUCCESS(status)) | 595 | if (ACPI_SUCCESS(status)) { |
595 | dev_info(root->bus->bridge, | 596 | dev_info(root->bus->bridge, |
596 | "ACPI _OSC control (0x%02x) granted\n", flags); | 597 | "ACPI _OSC control (0x%02x) granted\n", flags); |
597 | else | 598 | } else { |
598 | dev_dbg(root->bus->bridge, | 599 | dev_dbg(root->bus->bridge, |
599 | "ACPI _OSC request failed (code %d)\n", status); | 600 | "ACPI _OSC request failed (code %d)\n", status); |
601 | printk(KERN_INFO "Unable to assume _OSC PCIe control. " | ||
602 | "Disabling ASPM\n"); | ||
603 | pcie_no_aspm(); | ||
604 | } | ||
600 | } | 605 | } |
601 | 606 | ||
602 | pci_acpi_add_bus_pm_notifier(device, root->bus); | 607 | pci_acpi_add_bus_pm_notifier(device, root->bus); |
diff --git a/drivers/pci/pcie/portdrv_core.c b/drivers/pci/pcie/portdrv_core.c index 5130d0d2239..595654a1a6a 100644 --- a/drivers/pci/pcie/portdrv_core.c +++ b/drivers/pci/pcie/portdrv_core.c | |||
@@ -15,7 +15,6 @@ | |||
15 | #include <linux/slab.h> | 15 | #include <linux/slab.h> |
16 | #include <linux/pcieport_if.h> | 16 | #include <linux/pcieport_if.h> |
17 | #include <linux/aer.h> | 17 | #include <linux/aer.h> |
18 | #include <linux/pci-aspm.h> | ||
19 | 18 | ||
20 | #include "../pci.h" | 19 | #include "../pci.h" |
21 | #include "portdrv.h" | 20 | #include "portdrv.h" |
@@ -356,10 +355,8 @@ int pcie_port_device_register(struct pci_dev *dev) | |||
356 | 355 | ||
357 | /* Get and check PCI Express port services */ | 356 | /* Get and check PCI Express port services */ |
358 | capabilities = get_port_device_capability(dev); | 357 | capabilities = get_port_device_capability(dev); |
359 | if (!capabilities) { | 358 | if (!capabilities) |
360 | pcie_no_aspm(); | ||
361 | return 0; | 359 | return 0; |
362 | } | ||
363 | 360 | ||
364 | pci_set_master(dev); | 361 | pci_set_master(dev); |
365 | /* | 362 | /* |