commit | 2dc689372d19404cff3c0e0a8f6f5d42a675c6b4 | [log] [tgz] |
---|---|---|
author | Matt DeVillier <matt.devillier@gmail.com> | Wed Sep 13 18:42:12 2023 -0500 |
committer | Felix Held <felix-coreboot@felixheld.de> | Thu Sep 21 20:42:39 2023 +0000 |
tree | e9cb4b075d3518ca82e698b0e30715c569110c3f | |
parent | 63e77b025251afba6202056f688854be38b6e28d [diff] |
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 <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/78037 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/src/drivers/generic/gpio_keys/gpio_keys.c b/src/drivers/generic/gpio_keys/gpio_keys.c index 75ce09f..c0fd8de 100644 --- a/src/drivers/generic/gpio_keys/gpio_keys.c +++ b/src/drivers/generic/gpio_keys/gpio_keys.c
@@ -87,6 +87,8 @@ 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 */ }