]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: PM: Take wake IRQ into consideration when entering suspend-to-idle
authorRaul E Rangel <rrangel@chromium.org>
Thu, 29 Sep 2022 16:19:12 +0000 (10:19 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 4 Oct 2022 13:41:12 +0000 (15:41 +0200)
commit9c34019a3d72b08b28f41e41d9d2f36c8439d886
tree01ed89f449145ce7b2a5fd805dd5eed9047819e0
parent86e28f24938abb4af61be07511e3e1727a82dddb
ACPI: PM: Take wake IRQ into consideration when entering suspend-to-idle

This change adds support for ACPI devices that use ExclusiveAndWake or
SharedAndWake in their _CRS GpioInt definition (instead of using _PRW),
and also provide power resources. Previously the ACPI subsystem had no
idea if the device had a wake capable interrupt armed. This resulted
in the ACPI device PM system placing the device into D3Cold, and thus
cutting power to the device. With this change we will now query the
_S0W method to figure out the appropriate wake capable D-state.

Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/device_pm.c