lp:~kmously/ubuntu/+source/linux/+git/cosmic

Owned by Khaled El Mously
Get this repository:
git clone https://git.launchpad.net/~kmously/ubuntu/+source/linux/+git/cosmic
Only Khaled El Mously can upload to this repository. If you are Khaled El Mously please log in for upload directions.

Branches

Name Last Modified Last Commit
ml 2018-05-17 05:43:15 UTC 2018-05-17
PCI / PM: Check device_may_wakeup() in pci_enable_wake()

Author: Rafael J. Wysocki
Author Date: 2018-05-11 18:41:53 UTC

PCI / PM: Check device_may_wakeup() in pci_enable_wake()

BugLink: http://bugs.launchpad.net/bugs/1745646

Commit 0847684cfc5f0 (PCI / PM: Simplify device wakeup settings code)
went too far and dropped the device_may_wakeup() check from
pci_enable_wake() which causes wakeup to be enabled during system
suspend, hibernation or shutdown for some PCI devices that are not
allowed by user space to wake up the system from sleep (or power off).

As a result of this excessive power is drawn by some of the affected
systems while in sleep states or off.

Restore the device_may_wakeup() check in pci_enable_wake(), but make
sure that the PCI bus type's runtime suspend callback will not call
device_may_wakeup() which is about system wakeup from sleep and not
about device wakeup from runtime suspend.

Fixes: 0847684cfc5f0 (PCI / PM: Simplify device wakeup settings code)
Reported-by: Joseph Salisbury <joseph.salisbury@canonical.com>
Cc: 4.13+ <stable@vger.kernel.org> # 4.13+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
(cherry-picked from cfcadfaad7251d8b640713724b388164d75465b2)
Signed-off-by: Joseph Salisbury <joseph.salisbury@canonical.com>
Acked-by: Khalid Elmously <khalid.elmously@canonical.com>
Acked-by: Kleber Souza <kleber.souza@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>

11 of 1 result
This repository contains Public information 
Everyone can see this information.

Subscribers