PCI/ACPI: Allow _OSC presence to be optional for PCI
authorSinan Kaya <okaya@kernel.org>
Fri, 10 Aug 2018 04:32:12 +0000 (04:32 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 17 Sep 2018 21:32:24 +0000 (16:32 -0500)
commitc238252f86c1833fc0cbee3ce3b4c295d3ab24ef
tree4d7b0116c0c4a86c6969564bf8ceceb02cfb15e0
parent1ad61b612b95980a4d970c52022aa01dfc0f6068
PCI/ACPI: Allow _OSC presence to be optional for PCI

The PCI Firmware Spec, r3.2, sec 4.5.1, says:

  For a host bridge device that originates a PCI Express hierarchy, the
  _OSC interface defined in this section is required.  For a host bridge
  device that originates a PCI/PCI-X bus hierarchy, inclusion of an _OSC
  object is optional.

Allow PCI host bridges to bail out silently if _OSC is not found.

Reported-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Sinan Kaya <okaya@kernel.org>
[bhelgaas: cite PCI Firmware spec, the authoritative source]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/acpi/pci_root.c