]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: acpi: Call enable_irq_wake for _IAE GpioInts with Wake set
authorHans de Goede <hdegoede@redhat.com>
Fri, 24 Mar 2017 10:08:47 +0000 (11:08 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 30 Mar 2017 09:08:46 +0000 (11:08 +0200)
commit463240846024989a3a272b8cfe5b6044060614d1
treefa6983aa0e43c5b4ac0272537d68ff6f40f53d17
parentd67b700b03cdebbc883b94faeed994c96bd3efd6
gpio: acpi: Call enable_irq_wake for _IAE GpioInts with Wake set

On Bay Trail / Cherry Trail systems with a LID switch, the LID switch is
often connect to a gpioint handled by an _IAE event handler.
Before this commit such systems would not wake up when opening the lid,
requiring the powerbutton to be pressed after opening the lid to wakeup.

Note that Bay Trail / Cherry Trail systems use suspend-to-idle, so
the interrupts are generated anyway on those lines on lid switch changes,
but they are treated by the IRQ subsystem as spurious while suspended if
not marked as wakeup IRQs.

This commit calls enable_irq_wake() for _IAE GpioInts with a valid
event handler which have their Wake flag set. This fixes such systems
not waking up when opening the lid.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-acpi.c