From: Felipe Balbi Date: Mon, 23 May 2016 11:08:47 +0000 (+0300) Subject: UPSTREAM: usb: dwc3: gadget: remove udelay() from generic cmd X-Git-Tag: firefly_0821_release~1811 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1b53b78b7ceb9d61d0c9a4152d4f47e7e02fa4d5;p=firefly-linux-kernel-4.4.55.git UPSTREAM: usb: dwc3: gadget: remove udelay() from generic cmd We want commands to finish ASAP, so let's remove that udelay() call. Change-Id: I521945dc6242cfe1a8cf730ab2f7d9010a1e65a9 Signed-off-by: Felipe Balbi Signed-off-by: Wu Liang feng (cherry picked from commit 88811f7b722c417ececbc7f278c26d8df8606d02) --- diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 74a1489e5715..46fa5b9e6518 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -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) {