Skip to content
Commit 0e00392a authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

PCI: PM: Enable PME if it can be signaled from D3cold

PME signaling is only enabled by __pci_enable_wake() if the target
device can signal PME from the given target power state (to avoid
pointless reconfiguration of the device), but if the hierarchy above
the device goes into D3cold, the device itself will end up in D3cold
too, so if it can signal PME from D3cold, it should be enabled to
do so in __pci_enable_wake().

[Note that if the device does not end up in D3cold and it cannot
 signal PME from the original target power state, it will not signal
 PME, so in that case the behavior does not change.]

Link: https://lore.kernel.org/linux-pm/3149540.aeNJFYEL58@kreacher/


Fixes: 5bcc2fb4 ("PCI PM: Simplify PCI wake-up code")
Reported-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Reported-by: default avatarUtkarsh H Patel <utkarsh.h.patel@intel.com>
Reported-by: default avatarKoba Ko <koba.ko@canonical.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Tested-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent da9f2150
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment