]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / PCI: Do not try to acquire _OSC control if that is hopeless
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 30 Jul 2012 20:40:32 +0000 (22:40 +0200)
committerLen Brown <len.brown@intel.com>
Tue, 31 Jul 2012 01:15:07 +0000 (21:15 -0400)
commita41dced197fe4136cfb83424e0df87c2e8d20d8a
tree711ced633de9f96a0887570d3e2f93f0ec30b890
parent9310004d285a42b44d8577eb6aa873f24e0466d6
ACPI / PCI: Do not try to acquire _OSC control if that is hopeless

If acpi_pci_osc_support() fails for the given flags, it doesn't make
sense to call acpi_pci_osc_control_set() down the road for the same
flags, because it will certainly fail too.  Moreover, problem
diagnostics is then harder, because it is not too easy to identify
the reason of the _OSC failure in those cases.

For this reason, check the status returned by acpi_pci_osc_support()
for PCIe support flags and do not attempt to execute
acpi_pci_osc_control_set() for those flags and print a message if
it's "failure".  For compatibility with the existing code, disable
ASPM in that case too.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/pci_root.c