gpiolib: acpi: Add wake_capable variants of acpi_dev_gpio_irq_get
authorRaul E Rangel <rrangel@chromium.org>
Thu, 29 Sep 2022 16:19:09 +0000 (10:19 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 4 Oct 2022 13:41:12 +0000 (15:41 +0200)
commit4c99256013fa4e0fe9733ca1bab2b5684ccc02a1
treed9451a32e7892ce880517830ee4a9a37d623ae4c
parentf76349cf41451c5c42a99f18a9163377e4b364ff
gpiolib: acpi: Add wake_capable variants of acpi_dev_gpio_irq_get

The ACPI spec defines the SharedAndWake and ExclusiveAndWake share type
keywords. This is an indication that the GPIO IRQ can also be used as a
wake source. This change exposes the wake_capable bit so drivers can
correctly enable wake functionality instead of making an assumption.

Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/gpio/gpiolib-acpi.c
drivers/gpio/gpiolib-acpi.h
include/linux/acpi.h