coreboot-kgpe-d16/src/acpi
Tim Van Patten 3d4665cc71 src/acpi/device: Early return in _ON if device already enabled
If the device has enabled `use_gpio_for_status`, then call the `_STA`
method in `_ON` to determine if the device is already enabled. If it is
already enabled, return early to skip re-enabling the device and
performing the associated sleep.

This change is necessary since the Linux kernel does not call `_STA`
before calling `_ON`.

BRANCH=None
BUG=b:225022810
TEST=Dump SSDT table for guybrush

Signed-off-by: Tim Van Patten <timvp@google.com>
Change-Id: I13aa41766555953b86eded4c72e3b317fe6db5c8
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63613
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2022-04-14 22:30:05 +00:00
..
acpi.c coreboot_tables.c: Expose the ACPI RSDP 2022-03-09 14:21:01 +00:00
acpi_pm.c
acpigen.c src/acpi/acpigen.c: Reformat code 2022-02-21 15:19:24 +00:00
acpigen_dptf.c drivers/intel/dptf: Add support for Battery participant 2022-04-05 14:48:47 +00:00
acpigen_dsm.c acpi/acpigen.h: Add more intuitive AML package closing functions 2021-03-22 11:21:55 +00:00
acpigen_extern.asl ChromeOS: Refactor ACPI CNVS generation 2021-12-23 21:18:25 +00:00
acpigen_pci.c acpi: Add acpigen_write_PRT* helpers for generating _PRT entries 2021-03-24 16:08:57 +00:00
acpigen_ps2_keybd.c arch/x86/acpi: Add code for KEY_MENU 2022-02-18 20:18:41 +00:00
acpigen_usb.c src/acpi: Remove unused <acpi/acpi.h> 2022-01-10 17:22:47 +00:00
device.c src/acpi/device: Early return in _ON if device already enabled 2022-04-14 22:30:05 +00:00
dsdt_top.asl ChromeOS: Refactor ACPI CNVS generation 2021-12-23 21:18:25 +00:00
gnvs.c src: Drop duplicated includes 2022-01-01 14:55:51 +00:00
Kconfig ACPI: Refactor use of global and device NVS 2021-06-14 19:45:56 +00:00
Makefile.inc vc/google/chromeos: Refactor GNVS init 2021-04-30 06:46:07 +00:00
pld.c
sata.c src/acpi: Remove unused <acpi/acpi.h> 2022-01-10 17:22:47 +00:00
soundwire.c src: Remove unused <stdbool> 2022-01-19 15:15:50 +00:00