ACPI: resources: Add wake_capable parameter to acpi_dev_irq_flags
authorRaul E Rangel <rrangel@chromium.org>
Thu, 29 Sep 2022 16:19:10 +0000 (10:19 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 4 Oct 2022 13:41:12 +0000 (15:41 +0200)
commit5ff811604f93bdd2650beed80b48c2ca16c6fba6
treefe12abbfddd40eed3d5909e2b06f3345f40435ee
parent4c99256013fa4e0fe9733ca1bab2b5684ccc02a1
ACPI: resources: Add wake_capable parameter to acpi_dev_irq_flags

ACPI IRQ/Interrupt resources contain a bit that describes if the
interrupt should wake the system. This change exposes that bit via
a new IORESOURCE_IRQ_WAKECAPABLE flag. Drivers should check this flag
before arming an IRQ to wake the system.

Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/irq.c
drivers/acpi/resource.c
drivers/pnp/pnpacpi/rsparser.c
include/linux/acpi.h
include/linux/ioport.h