From d0d2889c2025f11409de497e3b3d23473266fcdc Mon Sep 17 00:00:00 2001 From: Matthew Garrett Date: Tue, 22 Jun 2010 11:25:43 -0400 Subject: [PATCH] --- yaml --- r: 206097 b: refs/heads/master c: 852972acff8f10f3a15679be2059bb94916cba5d h: refs/heads/master i: 206095: 3c5a72d70d5ae7e7bc2adb42af6531e8577ae102 v: v3 --- [refs] | 2 +- trunk/drivers/acpi/pci_root.c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index e70c6d38df1a..03ee7e433454 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3f579c340fe6d6bdd8c6f9f144e7c3b85d4174ec +refs/heads/master: 852972acff8f10f3a15679be2059bb94916cba5d diff --git a/trunk/drivers/acpi/pci_root.c b/trunk/drivers/acpi/pci_root.c index 4eac59393edc..1f67057af2a5 100644 --- a/trunk/drivers/acpi/pci_root.c +++ b/trunk/drivers/acpi/pci_root.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -543,6 +544,14 @@ static int __devinit acpi_pci_root_add(struct acpi_device *device) if (flags != base_flags) acpi_pci_osc_support(root, flags); + status = acpi_pci_osc_control_set(root->device->handle, + OSC_PCI_EXPRESS_CAP_STRUCTURE_CONTROL); + + if (ACPI_FAILURE(status)) { + printk(KERN_INFO "Unable to assume PCIe control: Disabling ASPM\n"); + pcie_no_aspm(); + } + pci_acpi_add_bus_pm_notifier(device, root->bus); if (device->wakeup.flags.run_wake) device_set_run_wake(root->bus->bridge, true);