Commit d807bdd0 authored by Felipe Balbi's avatar Felipe Balbi

usb: dwc3: gadget: remove udelay() from run_stop()

testing shows that udelay() is unnecessary as
controller reaches Halted state almost
instantenously as can be seen by our timeout
variable never actually decrementing.
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 5f82279a
...@@ -1584,7 +1584,6 @@ static int dwc3_gadget_run_stop(struct dwc3 *dwc, int is_on, int suspend) ...@@ -1584,7 +1584,6 @@ static int dwc3_gadget_run_stop(struct dwc3 *dwc, int is_on, int suspend)
timeout--; timeout--;
if (!timeout) if (!timeout)
return -ETIMEDOUT; return -ETIMEDOUT;
udelay(1);
} while (1); } while (1);
dwc3_trace(trace_dwc3_gadget, "gadget %s data soft-%s", dwc3_trace(trace_dwc3_gadget, "gadget %s data soft-%s",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment