From: Siva Durga Prasad Paladugu Date: Wed, 13 Apr 2016 11:57:25 +0000 (+0530) Subject: usb: dwc3: Increase the timeout for generic commands X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=07b02489f2f11459bf5e402f34c5e84d20ebbbcf;p=thirdparty%2Fu-boot.git usb: dwc3: Increase the timeout for generic commands Increase the response timeout for generic commands for handling worst case scenarios Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 8ff949d241f..f380beadb19 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -294,7 +294,7 @@ int dwc3_send_gadget_generic_command(struct dwc3 *dwc, unsigned cmd, u32 param) int dwc3_send_gadget_ep_cmd(struct dwc3 *dwc, unsigned ep, unsigned cmd, struct dwc3_gadget_ep_cmd_params *params) { - u32 timeout = 500; + u32 timeout = 50000; u32 reg; dwc3_writel(dwc->regs, DWC3_DEPCMDPAR0(ep), params->param0);