summaryrefslogtreecommitdiff
path: root/src/acpi
diff options
context:
space:
mode:
authorTim Wawrzynczak <twawrzynczak@chromium.org>2020-09-30 13:18:20 -0600
committerTim Wawrzynczak <twawrzynczak@chromium.org>2020-10-20 21:29:53 +0000
commit9eabeb53abcf2c27ac2286d30859ccdf7556a8bd (patch)
tree5c4da0ed0a124e34a72163d66215f4a09f8593e3 /src/acpi
parent09917e10cb520b6d492e7661e48db629504b58a1 (diff)
acpi: Skip writing references for disabled devices in Type-C config
When emitting ACPI tables for the Type-C connector class, skip writing out a device reference if it is to a disabled device. Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Change-Id: I84cc3e1a54e2b654239ad6e1a4662d582f3465cf Reviewed-on: https://review.coreboot.org/c/coreboot/+/45877 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/acpi')
-rw-r--r--src/acpi/acpigen_usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/acpi/acpigen_usb.c b/src/acpi/acpigen_usb.c
index 90a9b77c60..7448b3b569 100644
--- a/src/acpi/acpigen_usb.c
+++ b/src/acpi/acpigen_usb.c
@@ -71,7 +71,7 @@ static void add_device_ref(struct acpi_dp *dsd,
const char *path;
char *fresh;
- if (!dev)
+ if (!dev || !dev->enabled)
return;
/*