usb: dwc3: Add ACPI support for xHCI ports
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 18 Feb 2020 15:12:18 +0000 (17:12 +0200)
committerFelipe Balbi <balbi@kernel.org>
Sun, 15 Mar 2020 09:08:49 +0000 (11:08 +0200)
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 <andriy.shevchenko@linux.intel.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc3/host.c

index fa25287..95a90ea 100644 (file)
@@ -7,6 +7,7 @@
  * Authors: Felipe Balbi <balbi@ti.com>,
  */
 
+#include <linux/acpi.h>
 #include <linux/platform_device.h>
 
 #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;