Merge "dwc3: gadget: Increase retry count from 500 to 3000 iterations"

This commit is contained in:
qctecmdr 2021-02-12 05:34:51 -08:00 • committed by Gerrit - the friendly Code Review server
commit 1969aa397b

View file

@ -313,6 +313,7 @@ void dwc3_gadget_giveback(struct dwc3_ep *dep, struct dwc3_request *req,
spin_lock(&dwc->lock);
}
#define DWC_CMD_TIMEOUT 3000
/**
* dwc3_send_gadget_generic_command - issue a generic command for the controller
* @dwc: pointer to the controller context
@ -324,7 +325,7 @@ void dwc3_gadget_giveback(struct dwc3_ep *dep, struct dwc3_request *req,
*/
int dwc3_send_gadget_generic_command(struct dwc3 *dwc, unsigned cmd, u32 param)
{
u32 timeout = 500;
u32 timeout = DWC_CMD_TIMEOUT;
int status = 0;
int ret = 0;
u32 reg;
@ -366,7 +367,7 @@ int dwc3_send_gadget_ep_cmd(struct dwc3_ep *dep, unsigned cmd,
{
const struct usb_endpoint_descriptor *desc = dep->endpoint.desc;
struct dwc3 *dwc = dep->dwc;
u32 timeout = 3000;
u32 timeout = DWC_CMD_TIMEOUT;
u32 saved_config = 0;
u32 reg;