Lines Matching +full:usb +full:- +full:glue
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.
16 * 3. The names of the above-listed copyright holders may not be used
50 #include <linux/usb.h>
52 #include <linux/usb/hcd.h>
53 #include <linux/usb/ch11.h>
55 #include <linux/usb/usb_phy_generic.h>
59 static const char dwc2_driver_name[] = "dwc2-pci";
68 if (pdev->vendor == PCI_VENDOR_ID_SYNOPSYS && in dwc2_pci_quirks()
69 pdev->device == PCI_PRODUCT_ID_HAPS_HSOTG) { in dwc2_pci_quirks()
81 * dwc2_pci_probe() - Provides the cleanup entry points for the DWC_otg PCI
88 struct dwc2_pci_glue *glue = pci_get_drvdata(pci); in dwc2_pci_remove() local
90 platform_device_unregister(glue->dwc2); in dwc2_pci_remove()
91 usb_phy_generic_unregister(glue->phy); in dwc2_pci_remove()
102 struct device *dev = &pci->dev; in dwc2_pci_probe()
103 struct dwc2_pci_glue *glue; in dwc2_pci_probe() local
108 return -ENODEV; in dwc2_pci_probe()
123 ret = -ENOMEM; in dwc2_pci_probe()
134 res[1].start = pci->irq; in dwc2_pci_probe()
144 dwc2->dev.parent = dev; in dwc2_pci_probe()
150 glue = devm_kzalloc(dev, sizeof(*glue), GFP_KERNEL); in dwc2_pci_probe()
151 if (!glue) { in dwc2_pci_probe()
152 ret = -ENOMEM; in dwc2_pci_probe()
162 glue->phy = phy; in dwc2_pci_probe()
163 glue->dwc2 = dwc2; in dwc2_pci_probe()
164 pci_set_drvdata(pci, glue); in dwc2_pci_probe()
194 MODULE_DESCRIPTION("DESIGNWARE HS OTG PCI Bus Glue");