gpiolib: acpi: Add quirk to ignore EC wakeups on Dell Venue 10 Pro 5055
authorHans de Goede <hdegoede@redhat.com>
Thu, 1 Apr 2021 16:27:40 +0000 (18:27 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 5 May 2021 14:07:40 +0000 (16:07 +0200)
commitda91ece226729c76f60708efc275ebd4716ad089
treec64dd939df6bc6dcf71f32b3014b765cb6422a73
parentfdc1f5dfb9aa890473d6f94bd224d45cf2f0443d
gpiolib: acpi: Add quirk to ignore EC wakeups on Dell Venue 10 Pro 5055

Like some other Bay and Cherry Trail SoC based devices the Dell Venue
10 Pro 5055 has an embedded-controller which uses ACPI GPIO events to
report events instead of using the standard ACPI EC interface for this.

The EC interrupt is only used to report battery-level changes and
it keeps doing this while the system is suspended, causing the system
to not stay suspended.

Add an ignore-wake quirk for the GPIO pin used by the EC to fix the
spurious wakeups from suspend.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/gpio/gpiolib-acpi.c