Lines Matching full:xhci

16 #include "../host/xhci-port.h"
17 #include "../host/xhci-ext-caps.h"
18 #include "../host/xhci-caps.h"
19 #include "../host/xhci-plat.h"
38 /* xhci regs is not mapped yet, do it temperary here */ in dwc3_power_off_all_roothub_ports()
59 dev_err(dwc->dev, "xhci base reg invalid\n"); in dwc3_power_off_all_roothub_ports()
130 struct platform_device *xhci; in dwc3_host_init() local
136 * mode to avoid VBUS glitch happen when xhci get reset later. in dwc3_host_init()
144 xhci = platform_device_alloc("xhci-hcd", PLATFORM_DEVID_AUTO); in dwc3_host_init()
145 if (!xhci) { in dwc3_host_init()
146 dev_err(dwc->dev, "couldn't allocate xHCI device\n"); in dwc3_host_init()
150 xhci->dev.parent = dwc->dev; in dwc3_host_init()
152 dwc->xhci = xhci; in dwc3_host_init()
154 ret = platform_device_add_resources(xhci, dwc->xhci_resources, in dwc3_host_init()
157 dev_err(dwc->dev, "couldn't add resources to xHCI device\n"); in dwc3_host_init()
163 props[prop_idx++] = PROPERTY_ENTRY_BOOL("xhci-sg-trb-cache-size-quirk"); in dwc3_host_init()
180 * This following flag tells XHCI to do just that. in dwc3_host_init()
186 ret = device_create_managed_software_node(&xhci->dev, props, NULL); in dwc3_host_init()
188 dev_err(dwc->dev, "failed to add properties to xHCI\n"); in dwc3_host_init()
193 ret = platform_device_add_data(xhci, &dwc3_xhci_plat_quirk, in dwc3_host_init()
198 ret = platform_device_add(xhci); in dwc3_host_init()
200 dev_err(dwc->dev, "failed to register xHCI device\n"); in dwc3_host_init()
208 /* Pass on wakeup setting to the new xhci platform device */ in dwc3_host_init()
209 device_init_wakeup(&xhci->dev, true); in dwc3_host_init()
214 platform_device_put(xhci); in dwc3_host_init()
221 device_init_wakeup(&dwc->xhci->dev, false); in dwc3_host_exit()
224 platform_device_unregister(dwc->xhci); in dwc3_host_exit()
225 dwc->xhci = NULL; in dwc3_host_exit()