Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82355
b: refs/heads/master
c: 3c75e23
h: refs/heads/master
i:
  82353: 576925c
  82351: b2f759f
v: v3
  • Loading branch information
Andrew Patterson authored and Greg Kroah-Hartman committed Feb 1, 2008
1 parent 9c2fab3 commit 1e99b81
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d8634ddd371515740110d5658c3465a373894243
refs/heads/master: 3c75e23784e6ed5f4841de43d0750fd9b37bafcb
22 changes: 6 additions & 16 deletions trunk/drivers/pci/pcie/aer/aerdrv_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,13 @@ int aer_osc_setup(struct pcie_device *pciedev)
{
acpi_status status = AE_NOT_FOUND;
struct pci_dev *pdev = pciedev->port;
acpi_handle handle = DEVICE_ACPI_HANDLE(&pdev->dev);
struct pci_bus *parent;
acpi_handle handle = 0;

while (!handle) {
if (!pdev || !pdev->bus->parent)
break;
parent = pdev->bus->parent;
if (!parent->self)
/* Parent must be a host bridge */
handle = acpi_get_pci_rootbridge_handle(
pci_domain_nr(parent),
parent->number);
else
handle = DEVICE_ACPI_HANDLE(
&(parent->self->dev));
pdev = parent->self;
}
/* Find root host bridge */
while (pdev->bus && pdev->bus->self)
pdev = pdev->bus->self;
handle = acpi_get_pci_rootbridge_handle(
pci_domain_nr(pdev->bus), pdev->bus->number);

if (handle) {
pcie_osc_support_set(OSC_EXT_PCI_CONFIG_SUPPORT);
Expand Down

0 comments on commit 1e99b81

Please sign in to comment.