summaryrefslogtreecommitdiff
path: root/drivers/ipack
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2017-03-24 13:08:47 +0300
committerLinus Walleij <linus.walleij@linaro.org>2017-03-30 12:08:46 +0300
commit8a146fbe1f1461aebc9b8f06a0f22e1a8a4f0dd1 (patch)
treefa6983aa0e43c5b4ac0272537d68ff6f40f53d17 /drivers/ipack
parentc02ed2e75ef4c74e41e421acb4ef1494671585e8 (diff)
downloadlinux-8a146fbe1f1461aebc9b8f06a0f22e1a8a4f0dd1.tar.xz
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>
Diffstat (limited to 'drivers/ipack')
0 files changed, 0 insertions, 0 deletions