diff options
author | Alex Shi <alex.shi@linaro.org> | 2017-01-19 12:04:27 +0800 |
---|---|---|
committer | Alex Shi <alex.shi@linaro.org> | 2017-01-19 12:04:27 +0800 |
commit | cb370744bc101be91a0bc3e9fbdb670ab44df97d (patch) | |
tree | 1a84448b43dee0f4e255f9434e776c51812ddb35 /drivers/pci | |
parent | 67f07b48af22065412ba4e78472121c0a9f58329 (diff) | |
parent | f40b3cc69de8c97bbcdb74e3cffda06ffcad2cd7 (diff) |
Merge tag 'v4.1.38' into linux-linaro-lsk-v4.1lsk-v4.1-17.02
This is the 4.1.38 stable release
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/pci.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 4e720ed402ef..66c12c8f968b 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -1993,6 +1993,10 @@ bool pci_dev_run_wake(struct pci_dev *dev) if (!dev->pme_support) return false; + /* PME-capable in principle, but not from the intended sleep state */ + if (!pci_pme_capable(dev, pci_target_state(dev))) + return false; + while (bus->parent) { struct pci_dev *bridge = bus->self; |