aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Youn <John.Youn@synopsys.com>2015-09-26 03:11:15 -0400
committerFelipe Balbi <balbi@ti.com>2015-10-09 17:06:59 -0400
commitbb7f3d6d323a56b9c3b3e727380d1395a7f10107 (patch)
tree244fdc172a03c0fbcac83df1953735f6517c5761
parent9a5a0783e4910d9e2063e87184fbd9cac7161a16 (diff)
usb: dwc3: pci: Add platform data for Synopsys HAPS
Add platform data and set usb3_lpm_capable and has_lpm_erratum. Cc: <stable@vger.kernel.org> # v3.18+ Signed-off-by: John Youn <johnyoun@synopsys.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r--drivers/usb/dwc3/dwc3-pci.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/dwc3-pci.c b/drivers/usb/dwc3/dwc3-pci.c
index a286db7ffe94..65165308a04f 100644
--- a/drivers/usb/dwc3/dwc3-pci.c
+++ b/drivers/usb/dwc3/dwc3-pci.c
@@ -108,6 +108,21 @@ static int dwc3_pci_quirks(struct pci_dev *pdev)
108 } 108 }
109 } 109 }
110 110
111 if (pdev->vendor == PCI_VENDOR_ID_SYNOPSYS &&
112 (pdev->device == PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3 ||
113 pdev->device == PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3_AXI ||
114 pdev->device == PCI_DEVICE_ID_SYNOPSYS_HAPSUSB31)) {
115
116 struct dwc3_platform_data pdata;
117
118 memset(&pdata, 0, sizeof(pdata));
119 pdata.usb3_lpm_capable = true;
120 pdata.has_lpm_erratum = true;
121
122 return platform_device_add_data(pci_get_drvdata(pdev), &pdata,
123 sizeof(pdata));
124 }
125
111 return 0; 126 return 0;
112} 127}
113 128