Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127424
b: refs/heads/master
c: 98e6e28
h: refs/heads/master
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Jesse Barnes committed Jan 7, 2009
1 parent 2c11b2a commit 13aecfa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: ad8cfa1defee14a5181d9b63e666318c51cfaeed
refs/heads/master: 98e6e286d7b01deb7453b717aa38ebb69d6cefc0
8 changes: 6 additions & 2 deletions trunk/drivers/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1260,14 +1260,15 @@ void pci_pm_init(struct pci_dev *dev)
/* find PCI PM capability in list */
pm = pci_find_capability(dev, PCI_CAP_ID_PM);
if (!pm)
return;
goto Exit;

/* Check device's ability to generate PME# */
pci_read_config_word(dev, pm + PCI_PM_PMC, &pmc);

if ((pmc & PCI_PM_CAP_VER_MASK) > 3) {
dev_err(&dev->dev, "unsupported PM cap regs version (%u)\n",
pmc & PCI_PM_CAP_VER_MASK);
return;
goto Exit;
}

dev->pm_cap = pm;
Expand Down Expand Up @@ -1306,6 +1307,9 @@ void pci_pm_init(struct pci_dev *dev)
} else {
dev->pme_support = 0;
}

Exit:
pci_update_current_state(dev, PCI_D0);
}

/**
Expand Down

0 comments on commit 13aecfa

Please sign in to comment.