usb: dwc3: gadget: remove udelay() from run_stop()
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 9 Jun 2016 13:24:08 +0000 (16:24 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 21 Jun 2016 07:38:42 +0000 (10:38 +0300)
testing shows that udelay() is unnecessary as
controller reaches Halted state almost
instantenously as can be seen by our timeout
variable never actually decrementing.

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

index c889ee371cb6c6f27047122ee9845c196dcd0ece..b3b5df6dcbd21a242e16cf0f9f97278265e8ee19 100644 (file)
@@ -1584,7 +1584,6 @@ static int dwc3_gadget_run_stop(struct dwc3 *dwc, int is_on, int suspend)
                timeout--;
                if (!timeout)
                        return -ETIMEDOUT;
-               udelay(1);
        } while (1);
 
        dwc3_trace(trace_dwc3_gadget, "gadget %s data soft-%s",