From: Andy Shevchenko Date: Tue, 18 Feb 2020 15:12:18 +0000 (+0200) Subject: usb: dwc3: Add ACPI support for xHCI ports X-Git-Tag: v5.7-rc1~192^2~31^2~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11c39809070fc0eb3aacb0d9ee71cd3678144f66;p=thirdparty%2Fkernel%2Flinux.git usb: dwc3: Add ACPI support for xHCI ports The ACPI companion of the adapter has to be set for xHCI controller code to read and attach the ports described in the ACPI table. Use ACPI_COMPANION_SET macro to set this. Signed-off-by: Andy Shevchenko Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/dwc3/host.c b/drivers/usb/dwc3/host.c index fa252870c926f..95a90ea08975a 100644 --- a/drivers/usb/dwc3/host.c +++ b/drivers/usb/dwc3/host.c @@ -7,6 +7,7 @@ * Authors: Felipe Balbi , */ +#include #include #include "core.h" @@ -75,6 +76,7 @@ int dwc3_host_init(struct dwc3 *dwc) } xhci->dev.parent = dwc->dev; + ACPI_COMPANION_SET(&xhci->dev, ACPI_COMPANION(dwc->dev)); dwc->xhci = xhci;