drivers/generic/gpio_keys: Set ACPI status to HIDDEN
The gpio-keys is a Linux-specific ACPI interface, and the kernel driver does not care what the status is. Windows does not have drivers however, so set the ACPI status to HIDDEN to avoid an unknown device from appearing in Device Manager. TEST=build/boot Win11 on google/magolor, verify PENH device no longer listed under Device Manager. Change-Id: I8a476e57b36c26795bfe9605e725ba3d5f860b3a Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/91068 Reviewed-by: Sean Rhodes <sean@starlabs.systems> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
a69f91b581
commit
8108e9f2b6
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ 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_write_STA(ACPI_STATUS_DEVICE_HIDDEN_ON);
|
||||
|
||||
acpigen_pop_len(); /* Device */
|
||||
acpigen_pop_len(); /* Scope */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue