UPSTREAM: usb: dwc3: gadget: remove udelay() from generic cmd
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 23 May 2016 11:08:47 +0000 (14:08 +0300)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
We want commands to finish ASAP, so let's remove
that udelay() call.

Change-Id: I521945dc6242cfe1a8cf730ab2f7d9010a1e65a9
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
(cherry picked from commit 88811f7b722c417ececbc7f278c26d8df8606d02)

drivers/usb/dwc3/gadget.c

index 74a1489e57153bf893d9f2a5686a1443c4992a13..46fa5b9e6518df824a32a5d8af1a7eae3382740d 100644 (file)
@@ -225,8 +225,6 @@ int dwc3_send_gadget_generic_command(struct dwc3 *dwc, unsigned cmd, u32 param)
                                ret = -EINVAL;
                        break;
                }
-
-               udelay(1);
        } while (timeout--);
 
        if (!timeout) {