aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-02-18 17:12:18 +0200
committerFelipe Balbi <balbi@kernel.org>2020-03-15 11:08:49 +0200
commit11c39809070fc0eb3aacb0d9ee71cd3678144f66 (patch)
treee78b20af1a3ed4ea86da6077a258f321674f0b55
parentusb: dwc3: exynos: Add support for Exynos5422 suspend clk (diff)
downloadlinux-dev-11c39809070fc0eb3aacb0d9ee71cd3678144f66.tar.xz
linux-dev-11c39809070fc0eb3aacb0d9ee71cd3678144f66.zip
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 <andriy.shevchenko@linux.intel.com> Signed-off-by: Felipe Balbi <balbi@kernel.org>
-rw-r--r--drivers/usb/dwc3/host.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/host.c b/drivers/usb/dwc3/host.c
index fa252870c926..95a90ea08975 100644
--- a/drivers/usb/dwc3/host.c
+++ b/drivers/usb/dwc3/host.c
@@ -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;