Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI: enable ACPI SCI during suspend

Enable ACPI SCI during suspend so that SCI can be used
as wake events for PM_SUSPEND_FREEZE.

For S3/S4 transition,
We disable all GPEs in suspend_ops->prepare_late() to
fix a problem that GPEs may trigger SCI before
arch_suspend_disable_irqs() is run.
So it is safe to leave the SCI enabled until
arch_suspend_irq_disable() is run.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Zhang Rui and committed by
Rafael J. Wysocki
89a22dad 7e73c5ae

+1 -1
+1 -1
drivers/acpi/osl.c
··· 787 787 788 788 acpi_irq_handler = handler; 789 789 acpi_irq_context = context; 790 - if (request_irq(irq, acpi_irq, IRQF_SHARED, "acpi", acpi_irq)) { 790 + if (request_irq(irq, acpi_irq, IRQF_SHARED | IRQF_NO_SUSPEND, "acpi", acpi_irq)) { 791 791 printk(KERN_ERR PREFIX "SCI (IRQ%d) allocation failed\n", irq); 792 792 acpi_irq_handler = NULL; 793 793 return AE_NOT_ACQUIRED;