summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2019-05-04 17:58:38 -0500
committerMatt DeVillier <matt.devillier@gmail.com>2023-05-13 20:06:58 +0000
commitb8a0e64d7839d709d27f120f38c64b6a5fbde9bd (patch)
tree86f21cf1b30582055b307c4fe4de258bf3256aa8
parent56a3442dd854a8fd6b6c4b10b957e211b9d0a1c2 (diff)
drivers/net/r8168: add ACPI _STA field entry
Add _STA field entry for r8168 ACPI device and set to ACPI_STATUS_DEVICE_HIDDEN_ON in order to hide device from OS (Windows) as there is no driver needed (or available). Windows correctly attaches drivers to the PCIe device, the separate ACPI device is unused and unneeded. Linux is unaffected as it does not use the ACPI device status. Change-Id: Ib7ae99fffcb00e71421b93c2794119841aa239d3 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/75177 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/drivers/net/r8168.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/net/r8168.c b/src/drivers/net/r8168.c
index dcf863a4dd..f21edd0e07 100644
--- a/src/drivers/net/r8168.c
+++ b/src/drivers/net/r8168.c
@@ -378,6 +378,7 @@ static void r8168_net_fill_ssdt(const struct device *dev)
if (dev->chip_ops)
acpigen_write_name_string("_DDN", dev->chip_ops->name);
+ acpigen_write_STA(ACPI_STATUS_DEVICE_HIDDEN_ON);
/* Power Resource */
if (CONFIG(RT8168_GEN_ACPI_POWER_RESOURCE) && config->has_power_resource) {