dwc3-pci.c (9fe64e15148d1ff81fa0bcb5fd58531e3ae2aa3a) dwc3-pci.c (4a56e413b50c11df35e6c6909312ce7418848b37)
1/**
2 * dwc3-pci.c - PCI Specific glue layer
3 *
4 * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com
5 *
6 * Authors: Felipe Balbi <balbi@ti.com>,
7 * Sebastian Andrzej Siewior <bigeasy@linutronix.de>
8 *

--- 111 unchanged lines hidden (view full) ---

120 pdev->device == PCI_DEVICE_ID_INTEL_BXT_M) {
121 acpi_str_to_uuid(PCI_INTEL_BXT_DSM_UUID, dwc->uuid);
122 dwc->has_dsm_for_pm = true;
123 }
124
125 if (pdev->device == PCI_DEVICE_ID_INTEL_BYT) {
126 struct gpio_desc *gpio;
127
1/**
2 * dwc3-pci.c - PCI Specific glue layer
3 *
4 * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com
5 *
6 * Authors: Felipe Balbi <balbi@ti.com>,
7 * Sebastian Andrzej Siewior <bigeasy@linutronix.de>
8 *

--- 111 unchanged lines hidden (view full) ---

120 pdev->device == PCI_DEVICE_ID_INTEL_BXT_M) {
121 acpi_str_to_uuid(PCI_INTEL_BXT_DSM_UUID, dwc->uuid);
122 dwc->has_dsm_for_pm = true;
123 }
124
125 if (pdev->device == PCI_DEVICE_ID_INTEL_BYT) {
126 struct gpio_desc *gpio;
127
128 acpi_dev_add_driver_gpios(ACPI_COMPANION(&pdev->dev),
128 ret = devm_acpi_dev_add_driver_gpios(&pdev->dev,
129 acpi_dwc3_byt_gpios);
129 acpi_dwc3_byt_gpios);
130 if (ret)
131 dev_dbg(&pdev->dev, "failed to add mapping table\n");
130
131 /*
132 * These GPIOs will turn on the USB2 PHY. Note that we have to
133 * put the gpio descriptors again here because the phy driver
134 * might want to grab them, too.
135 */
136 gpio = gpiod_get_optional(&pdev->dev, "cs", GPIOD_OUT_LOW);
137 if (IS_ERR(gpio))

--- 99 unchanged lines hidden (view full) ---

237}
238
239static void dwc3_pci_remove(struct pci_dev *pci)
240{
241 struct dwc3_pci *dwc = pci_get_drvdata(pci);
242
243 device_init_wakeup(&pci->dev, false);
244 pm_runtime_get(&pci->dev);
132
133 /*
134 * These GPIOs will turn on the USB2 PHY. Note that we have to
135 * put the gpio descriptors again here because the phy driver
136 * might want to grab them, too.
137 */
138 gpio = gpiod_get_optional(&pdev->dev, "cs", GPIOD_OUT_LOW);
139 if (IS_ERR(gpio))

--- 99 unchanged lines hidden (view full) ---

239}
240
241static void dwc3_pci_remove(struct pci_dev *pci)
242{
243 struct dwc3_pci *dwc = pci_get_drvdata(pci);
244
245 device_init_wakeup(&pci->dev, false);
246 pm_runtime_get(&pci->dev);
245 acpi_dev_remove_driver_gpios(ACPI_COMPANION(&pci->dev));
246 platform_device_unregister(dwc->dwc3);
247}
248
249static const struct pci_device_id dwc3_pci_id_table[] = {
250 {
251 PCI_DEVICE(PCI_VENDOR_ID_SYNOPSYS,
252 PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3),
253 },

--- 111 unchanged lines hidden ---
247 platform_device_unregister(dwc->dwc3);
248}
249
250static const struct pci_device_id dwc3_pci_id_table[] = {
251 {
252 PCI_DEVICE(PCI_VENDOR_ID_SYNOPSYS,
253 PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3),
254 },

--- 111 unchanged lines hidden ---