OSDN Git Service

PCI: Apply _HPP settings to PCIe devices as well as PCI and PCI-X
authorBjorn Helgaas <bhelgaas@google.com>
Sat, 30 Aug 2014 00:10:19 +0000 (18:10 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Sat, 13 Sep 2014 02:10:16 +0000 (20:10 -0600)
commitc6285fc5b55ecbf78c53301a191f04bb2fda1b3a
tree4ba22b20bfc40277e4626835c65f7d5089abd2d2
parentfbfa398b84a5fc6e085dedba5ec3e94f21815d05
PCI: Apply _HPP settings to PCIe devices as well as PCI and PCI-X

The ACPI _HPP method was defined before PCIe existed, so its documentation
only mentions PCI.  The _HPX Type 0 setting record is essentially identical
to _HPP, but the spec (ACPI rev 5.0, sec 6.2.8.1) says it should be applied
to PCI, PCI-X, and PCIe devices, with settings being ignored if they are
not applicable.

Some platforms with both conventional PCI and PCIe devices provide only
_HPP (not _HPX), so treat _HPP the same way as an _HPX Type 0 record and
apply it to PCIe devices as well as PCI and PCI-X.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
drivers/pci/probe.c