From 397dbb0e372dfe6d7da1f20bd6300c567876d68b Mon Sep 17 00:00:00 2001 From: Siva Durga Prasad Paladugu Date: Wed, 13 Apr 2016 17:27:25 +0530 Subject: [PATCH] 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 State: pending --- drivers/usb/dwc3/gadget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 4e68fb0a82f..aeda341e26c 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -299,7 +299,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); -- 2.47.3