aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/dwc3-omap.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2011-09-01 11:33:43 -0400
committerFelipe Balbi <balbi@ti.com>2011-09-09 06:02:34 -0400
commit29d8bc133f7bb3172201dc3f6540562cec195d13 (patch)
tree3b8db6ed72afe669ee1bf6f0127f6d32d7ae5df1 /drivers/usb/dwc3/dwc3-omap.c
parentdf01c61e0675bddc8d0567d65f6174cdeb92c286 (diff)
usb: dwc3: omap: drop DEV_PM_OPS for now
We need to have actual HW in order to implement and test that part of the code anyway. Until then it's best to remove it. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/dwc3-omap.c')
-rw-r--r--drivers/usb/dwc3/dwc3-omap.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers/usb/dwc3/dwc3-omap.c
index a4788ac53c0..17d1822f768 100644
--- a/drivers/usb/dwc3/dwc3-omap.c
+++ b/drivers/usb/dwc3/dwc3-omap.c
@@ -125,46 +125,6 @@ struct dwc3_omap {
125 u32 dma_status:1; 125 u32 dma_status:1;
126}; 126};
127 127
128#ifdef CONFIG_PM
129static int dwc3_omap_suspend(struct device *dev)
130{
131 struct dwc3_omap *omap = dev_get_drvdata(dev);
132
133 memcpy_fromio(omap->context, omap->base, omap->resource_size);
134
135 return 0;
136}
137
138static int dwc3_omap_resume(struct device *dev)
139{
140 struct dwc3_omap *omap = dev_get_drvdata(dev);
141
142 memcpy_toio(omap->base, omap->context, omap->resource_size);
143
144 return 0;
145}
146
147static int dwc3_omap_idle(struct device *dev)
148{
149 struct dwc3_omap *omap = dev_get_drvdata(dev);
150 u32 reg;
151
152 /* stop DMA Engine */
153 reg = dwc3_readl(omap->base, USBOTGSS_SYSCONFIG);
154 reg &= ~(USBOTGSS_SYSCONFIG_DMADISABLE);
155 dwc3_writel(omap->base, USBOTGSS_SYSCONFIG, reg);
156
157 return 0;
158}
159
160static UNIVERSAL_DEV_PM_OPS(dwc3_omap_pm_ops, dwc3_omap_suspend,
161 dwc3_omap_resume, dwc3_omap_idle);
162
163#define DEV_PM_OPS (&dwc3_omap_pm_ops)
164#else
165#define DEV_PM_OPS NULL
166#endif
167
168static irqreturn_t dwc3_omap_interrupt(int irq, void *_omap) 128static irqreturn_t dwc3_omap_interrupt(int irq, void *_omap)
169{ 129{
170 struct dwc3_omap *omap = _omap; 130 struct dwc3_omap *omap = _omap;
@@ -388,7 +348,6 @@ static struct platform_driver dwc3_omap_driver = {
388 .remove = __devexit_p(dwc3_omap_remove), 348 .remove = __devexit_p(dwc3_omap_remove),
389 .driver = { 349 .driver = {
390 .name = "omap-dwc3", 350 .name = "omap-dwc3",
391 .pm = DEV_PM_OPS,
392 .of_match_table = of_dwc3_matach, 351 .of_match_table = of_dwc3_matach,
393 }, 352 },
394}; 353};