From 9eabeb53abcf2c27ac2286d30859ccdf7556a8bd Mon Sep 17 00:00:00 2001 From: Tim Wawrzynczak Date: Wed, 30 Sep 2020 13:18:20 -0600 Subject: 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 Change-Id: I84cc3e1a54e2b654239ad6e1a4662d582f3465cf Reviewed-on: https://review.coreboot.org/c/coreboot/+/45877 Tested-by: build bot (Jenkins) Reviewed-by: Duncan Laurie Reviewed-by: Furquan Shaikh --- src/acpi/acpigen_usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/acpi') 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; /* -- cgit v1.2.3