Driver core: implement uevent suppress in kobject
[firefly-linux-kernel-4.4.55.git] / drivers / acpi / pci_root.c
index 96e68e8415392d969ba74f78bb44be6bb8e029db..5b38a026d1220113aec9c88cbb08f325537012d3 100644 (file)
@@ -347,6 +347,11 @@ static int __devinit acpi_pci_root_add(struct acpi_device *device)
        /* Indicate support for various _OSC capabilities. */
        if (pci_ext_cfg_avail(root->bus->self))
                flags |= OSC_EXT_PCI_CONFIG_SUPPORT;
+       if (pcie_aspm_enabled())
+               flags |= OSC_ACTIVE_STATE_PWR_SUPPORT |
+                       OSC_CLOCK_PWR_CAPABILITY_SUPPORT;
+       if (pci_msi_enabled())
+               flags |= OSC_MSI_SUPPORT;
        if (flags != base_flags)
                pci_acpi_osc_support(device->handle, flags);