]> git.baikalelectronics.ru Git - kernel.git/commit
PCI ACPI: Added a function to register _OSC with only PCIe devices.
authorAndrew Patterson <andrew.patterson@hp.com>
Wed, 23 Jan 2008 00:18:12 +0000 (17:18 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Feb 2008 23:04:29 +0000 (15:04 -0800)
commitc539e018ba2c0b5263fb1ce7a1bc86c442af01ac
tree9820e6cfa1bfe6989854425b0d63840c949fa3f2
parent02af20aae2a91271c6d31bf20a411ad9774e4d66
PCI ACPI: Added a function to register _OSC with only PCIe devices.

The function pci_osc_support_set() traverses every root bridge when
checking for _OSC support for a capability.  It quits as soon as it finds a
device/bridge that doesn't support the requested capability. This won't
work for systems that have mixed PCI and PCIe bridges when checking for
PCIe features.  I split this function into two -- pci_osc_support_set() and
pcie_osc_support_set(). The latter is used when only PCIe devices should be
traversed.

Signed-off-by: Andrew Patterson <andrew.patterson@hp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/pci-acpi.c
include/linux/pci-acpi.h