Lines Matching full:xhci
16 #include "../host/xhci-plat.h"
86 struct platform_device *xhci; in dwc3_host_init() local
94 xhci = platform_device_alloc("xhci-hcd", PLATFORM_DEVID_AUTO); in dwc3_host_init()
95 if (!xhci) { in dwc3_host_init()
96 dev_err(dwc->dev, "couldn't allocate xHCI device\n"); in dwc3_host_init()
100 xhci->dev.parent = dwc->dev; in dwc3_host_init()
102 dwc->xhci = xhci; in dwc3_host_init()
104 ret = platform_device_add_resources(xhci, dwc->xhci_resources, in dwc3_host_init()
107 dev_err(dwc->dev, "couldn't add resources to xHCI device\n"); in dwc3_host_init()
113 props[prop_idx++] = PROPERTY_ENTRY_BOOL("xhci-sg-trb-cache-size-quirk"); in dwc3_host_init()
128 * This following flag tells XHCI to do just that. in dwc3_host_init()
134 ret = device_create_managed_software_node(&xhci->dev, props, NULL); in dwc3_host_init()
136 dev_err(dwc->dev, "failed to add properties to xHCI\n"); in dwc3_host_init()
141 ret = platform_device_add_data(xhci, &dwc3_xhci_plat_quirk, in dwc3_host_init()
146 ret = platform_device_add(xhci); in dwc3_host_init()
148 dev_err(dwc->dev, "failed to register xHCI device\n"); in dwc3_host_init()
156 /* Pass on wakeup setting to the new xhci platform device */ in dwc3_host_init()
157 device_init_wakeup(&xhci->dev, true); in dwc3_host_init()
162 platform_device_put(xhci); in dwc3_host_init()
169 device_init_wakeup(&dwc->xhci->dev, false); in dwc3_host_exit()
172 platform_device_unregister(dwc->xhci); in dwc3_host_exit()
173 dwc->xhci = NULL; in dwc3_host_exit()