UPSTREAM: usb: dwc3: gadget: remove udelay(1) when sending ep cmds
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 13 May 2016 07:11:59 +0000 (10:11 +0300)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
When we send an endpoint command, we want that to
complete as soon as possible, so let's remove the
unnecessary udelay(1) call.

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

drivers/usb/dwc3/gadget.c

index 3d50b0b55adfd8623386490735d6b3895ee4ce76..ad130fbd30f15f869652bff3a636ec4d9d0c055d 100644 (file)
@@ -334,8 +334,6 @@ int dwc3_send_gadget_ep_cmd(struct dwc3 *dwc, unsigned ep,
                        ret = -ETIMEDOUT;
                        break;
                }
-
-               udelay(1);
        } while (1);
 
        if (unlikely(susphy)) {