Lines Matching full:xhci
65 struct platform_device *xhci; in dwc3_host_init() local
73 xhci = platform_device_alloc("xhci-hcd", PLATFORM_DEVID_AUTO); in dwc3_host_init()
74 if (!xhci) { in dwc3_host_init()
75 dev_err(dwc->dev, "couldn't allocate xHCI device\n"); in dwc3_host_init()
79 xhci->dev.parent = dwc->dev; in dwc3_host_init()
81 dwc->xhci = xhci; in dwc3_host_init()
83 ret = platform_device_add_resources(xhci, dwc->xhci_resources, in dwc3_host_init()
86 dev_err(dwc->dev, "couldn't add resources to xHCI device\n"); in dwc3_host_init()
92 props[prop_idx++] = PROPERTY_ENTRY_BOOL("xhci-sg-trb-cache-size-quirk"); in dwc3_host_init()
107 * This following flag tells XHCI to do just that. in dwc3_host_init()
113 ret = device_create_managed_software_node(&xhci->dev, props, NULL); in dwc3_host_init()
115 dev_err(dwc->dev, "failed to add properties to xHCI\n"); in dwc3_host_init()
120 ret = platform_device_add(xhci); in dwc3_host_init()
122 dev_err(dwc->dev, "failed to register xHCI device\n"); in dwc3_host_init()
128 platform_device_put(xhci); in dwc3_host_init()
134 platform_device_unregister(dwc->xhci); in dwc3_host_exit()
135 dwc->xhci = NULL; in dwc3_host_exit()