platform/x86: intel_int0002_vgpio: Fix wakeups not working on Cherry Trail
authorHans de Goede <hdegoede@redhat.com>
Fri, 23 Aug 2019 17:48:14 +0000 (19:48 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 7 Sep 2019 18:16:09 +0000 (21:16 +0300)
Commit 871f1f2bcb01 ("platform/x86: intel_int0002_vgpio: Only implement
irq_set_wake on Bay Trail") removed the irq_set_wake method from the
struct irq_chip used on Cherry Trail, but it did not set
IRQCHIP_SKIP_SET_WAKE causing  kernel/irq/manage.c: set_irq_wake_real()
to return -ENXIO.

This causes the kernel to no longer see PME events reported through the
INT0002 device as wakeup events. Which e.g. breaks wakeup by the (USB)
keyboard on many Cherry Trail 2-in-1 devices.

Cc: stable@vger.kernel.org
Fixes: 871f1f2bcb01 ("platform/x86: intel_int0002_vgpio: Only implement irq_set_wake on Bay Trail")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/intel_int0002_vgpio.c

index 4f3f30152a279d569d2cf90b43297d963e35b575..4df10d5b9db9f55082bea6e4f063941ccdd5448b 100644 (file)
@@ -144,6 +144,7 @@ static struct irq_chip int0002_cht_irqchip = {
         * No set_wake, on CHT the IRQ is typically shared with the ACPI SCI
         * and we don't want to mess with the ACPI SCI irq settings.
         */
+       .flags                  = IRQCHIP_SKIP_SET_WAKE,
 };
 
 static const struct x86_cpu_id int0002_cpu_ids[] = {