Lines Matching +full:hs +full:- +full:usb +full:- +full:if
1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * pci.c - DesignWare HS OTG Controller PCI driver
5 * Copyright (C) 2004-2013 Synopsys, Inc.
20 #include <linux/usb.h>
22 #include <linux/usb/hcd.h>
23 #include <linux/usb/ch11.h>
25 #include <linux/usb/usb_phy_generic.h>
29 static const char dwc2_driver_name[] = "dwc2-pci";
37 * dwc2_pci_remove() - Provides the cleanup entry points for the DWC_otg PCI
46 platform_device_unregister(glue->dwc2); in dwc2_pci_remove()
47 usb_phy_generic_unregister(glue->phy); in dwc2_pci_remove()
58 struct device *dev = &pci->dev; in dwc2_pci_probe()
62 if (ret) { in dwc2_pci_probe()
64 return -ENODEV; in dwc2_pci_probe()
70 if (IS_ERR(phy)) { in dwc2_pci_probe()
77 if (!dwc2) { in dwc2_pci_probe()
79 ret = -ENOMEM; in dwc2_pci_probe()
90 res[1].start = pci->irq; in dwc2_pci_probe()
95 if (ret) { in dwc2_pci_probe()
100 dwc2->dev.parent = dev; in dwc2_pci_probe()
103 if (!glue) { in dwc2_pci_probe()
104 ret = -ENOMEM; in dwc2_pci_probe()
109 if (ret) { in dwc2_pci_probe()
114 glue->phy = phy; in dwc2_pci_probe()
115 glue->dwc2 = dwc2; in dwc2_pci_probe()
146 MODULE_DESCRIPTION("DESIGNWARE HS OTG PCI Bus Glue");