From 2dc689372d19404cff3c0e0a8f6f5d42a675c6b4 Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Wed, 13 Sep 2023 18:42:12 -0500 Subject: [PATCH] drivers/generic/gpio_keys: Write device ACPI status Allows device to be hidden from OS (Windows) via devicetree 'hidden' keyword. TEST=tested with rest of patch train Change-Id: I81482bd19e24627cab80deed2b9057f45b6ac0a0 Signed-off-by: Matt DeVillier Reviewed-on: https://review.coreboot.org/c/coreboot/+/78037 Reviewed-by: Felix Held Tested-by: build bot (Jenkins) --- src/drivers/generic/gpio_keys/gpio_keys.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/drivers/generic/gpio_keys/gpio_keys.c b/src/drivers/generic/gpio_keys/gpio_keys.c index 75ce09f7ea..c0fd8de381 100644 --- a/src/drivers/generic/gpio_keys/gpio_keys.c +++ b/src/drivers/generic/gpio_keys/gpio_keys.c @@ -87,6 +87,8 @@ static void gpio_keys_fill_ssdt_generator(const struct device *dev) acpi_dp_add_child(dsd, "button-0", child); acpi_dp_write(dsd); + acpigen_write_STA(acpi_device_status(dev)); + acpigen_pop_len(); /* Device */ acpigen_pop_len(); /* Scope */ }