OSDN Git Service

PCI / PM: Make PCIe PME interrupts wake up from suspend-to-idle
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 1 Sep 2014 11:49:16 +0000 (13:49 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 1 Sep 2014 11:49:16 +0000 (13:49 +0200)
commit76cde7e495904064d612cf3eb4bf6d9e76ff8191
treeb244a8a7555e551474623ccc8b80132a1bcf1588
parent5613570b133a294355d35fa66162afe7607a8abb
PCI / PM: Make PCIe PME interrupts wake up from suspend-to-idle

To make PCIe PME interrupts wake up the system from suspend to idle,
make the PME driver use enable_irq_wake() on the IRQ during system
suspend (if there are any wakeup devices below the given PCIe port)
without disabling PME interrupts.  This way, an interrupt will still
trigger if a wakeup event happens and the system will be woken up (or
system suspend in progress will be aborted) by means of the new
mechanics introduced previously.

This change allows Wake-on-LAN to be used for wakeup from
suspend-to-idle on my MSI Wind tesbed netbook.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pci/pcie/pme.c