usb: dwc3: gadget: don't enable LPM early
authorFelipe Balbi <balbi@ti.com>
Mon, 15 Jul 2013 08:31:27 +0000 (11:31 +0300)
committerFelipe Balbi <balbi@ti.com>
Mon, 29 Jul 2013 10:56:58 +0000 (13:56 +0300)
LPM is enabled in Connection Done interrupt,
there's no need to enable it early.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c

index 3850ff0b853e1b483f5e227b97b54cdb9f995071..95ef20c5b53b2a8a399f0a07b81417d65f7d41cf 100644 (file)
@@ -2540,7 +2540,6 @@ static irqreturn_t dwc3_interrupt(int irq, void *_dwc)
  */
 int dwc3_gadget_init(struct dwc3 *dwc)
 {
-       u32                                     reg;
        int                                     ret;
 
        dwc->ctrl_req = dma_alloc_coherent(dwc->dev, sizeof(*dwc->ctrl_req),
@@ -2590,10 +2589,6 @@ int dwc3_gadget_init(struct dwc3 *dwc)
        if (ret)
                goto err4;
 
-       reg = dwc3_readl(dwc->regs, DWC3_DCFG);
-       reg |= DWC3_DCFG_LPM_CAP;
-       dwc3_writel(dwc->regs, DWC3_DCFG, reg);
-
        ret = usb_add_gadget_udc(dwc->dev, &dwc->gadget);
        if (ret) {
                dev_err(dwc->dev, "failed to register udc\n");