Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283327
b: refs/heads/master
c: 4716a45
h: refs/heads/master
i:
  283325: da7a33b
  283323: 199c108
  283319: 01b7d75
  283311: fa080a3
  283295: 49c7eb4
  283263: 86cd68d
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Jesse Barnes committed Jan 6, 2012
1 parent 376615b commit 2968018
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 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: ab4ca7821fda0ddb7c86db3b9d64d48ea7dead72
refs/heads/master: 4716a450eb490090b70f0d9fca8d0a6159e505ad
12 changes: 8 additions & 4 deletions trunk/drivers/pci/pci-acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,20 @@ static void pci_acpi_wake_dev(acpi_handle handle, u32 event, void *context)
{
struct pci_dev *pci_dev = context;

if (event == ACPI_NOTIFY_DEVICE_WAKE && pci_dev) {
if (event != ACPI_NOTIFY_DEVICE_WAKE || !pci_dev)
return;

if (!pci_dev->pm_cap || !pci_dev->pme_support
|| pci_check_pme_status(pci_dev)) {
if (pci_dev->pme_poll)
pci_dev->pme_poll = false;

pci_wakeup_event(pci_dev);
pci_check_pme_status(pci_dev);
pm_runtime_resume(&pci_dev->dev);
if (pci_dev->subordinate)
pci_pme_wakeup_bus(pci_dev->subordinate);
}

if (pci_dev->subordinate)
pci_pme_wakeup_bus(pci_dev->subordinate);
}

/**
Expand Down

0 comments on commit 2968018

Please sign in to comment.