On Saturday, July 19, 2014 10:36:53 PM Rafael J. Wysocki wrote: > Hi, > > As per the subject, this is to make ACPI-based PCI wakeup (such as WoL on some > systems among other things) work with the "freeze" sleep state. For this > purpose ACPI wakeup GPEs need to be enabled for wakeup devices before > freeze_enter() is called and it is best to do that when configuring devices > for wakeup. > > [1/2] Always enable wakeup GPEs when configuring devices for wakeup > [2/2] Rename one static function to avoid possible future confusion > > Thanks! That turned out to be more challenging than I had thought initially. The last version I sent was almost OK, but it had some issues (like it could walk the PCI hierarchy before resuming any PCI devices during system resume), so a new version follows. I did my best to avoid introducing any new problems with it, but I obviously might overlook something. It works for me and doesn't seem to break anything as far as I can say. [1/3] Make PM workqueue available for CONFIG_PM_RUNTIME unset. [2/3] Rework the handling of ACPI device wakeup notifications. [3/3] Enable wakeup GPEs while setting up devices for wakeup during system suspend too. Thanks! -- I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center. -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html