]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
PCI: Run ACPI _OSC method on root bridges only
authorAndrew Patterson <andrew.patterson@hp.com>
Wed, 23 Jan 2008 00:18:27 +0000 (17:18 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Feb 2008 23:04:30 +0000 (15:04 -0800)
commit3c75e23784e6ed5f4841de43d0750fd9b37bafcb
tree34c54566b3dfe8411464f49bdaec0cbcdd7170e9
parentd8634ddd371515740110d5658c3465a373894243
PCI: Run ACPI _OSC method on root bridges only

According to the PCI Firmware Specification Revision 3.0 section 4.5, _OSC
should only be called on a root brdige.  Here is the relevant passage: "The
_OSC interface defined in this section applies only to Host Bridge ACPI
devices that originate PCI, PCI-X, or PCI Express hierarchies". Changed the
code to find the parent root bridge of the device and call _OSC on that.

Signed-off-by: Andrew Patterson <andrew.patterson@hp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/pcie/aer/aerdrv_acpi.c