From: Felipe Balbi Date: Fri, 13 May 2016 07:11:59 +0000 (+0300) Subject: usb: dwc3: gadget: remove udelay(1) when sending ep cmds X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b43bba96b9036e42b2c2c71ee15e1f77b0b37aec;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git usb: dwc3: gadget: remove udelay(1) when sending ep cmds When we send an endpoint command, we want that to complete as soon as possible, so let's remove the unnecessary udelay(1) call. Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 8ca3855e09a6..79d1882f1908 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -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)) {