summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-02-18 18:12:18 +0300
committerFelipe Balbi <balbi@kernel.org>2020-03-15 12:08:49 +0300
commit11c39809070fc0eb3aacb0d9ee71cd3678144f66 (patch)
treee78b20af1a3ed4ea86da6077a258f321674f0b55
parent07f6842341abe978e6375078f84506ec3280ece5 (diff)
downloadlinux-11c39809070fc0eb3aacb0d9ee71cd3678144f66.tar.xz
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;