diff options
author | Gregory Herrero <gregory.herrero@intel.com> | 2015-01-09 12:39:01 (GMT) |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-12 21:34:18 (GMT) |
commit | 48b20bcb3b2e9b15be1ebb9b574b003cffb033d5 (patch) | |
tree | e5474f140d5357cbf9b02ea7315716de1a72270e | |
parent | 1a0ed863eef7ea6af63afd60ca4fa16edf6b4244 (diff) | |
download | linux-48b20bcb3b2e9b15be1ebb9b574b003cffb033d5.tar.xz |
usb: dwc2: gadget: don't block after fifo flush timeout
Can't stay in the loop forever. Break it after timeout.
Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Acked-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r-- | drivers/usb/dwc2/gadget.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index 6d76e28..e3bb525 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c @@ -230,6 +230,7 @@ static void s3c_hsotg_init_fifo(struct dwc2_hsotg *hsotg) dev_err(hsotg->dev, "%s: timeout flushing fifos (GRSTCTL=%08x)\n", __func__, val); + break; } udelay(1); |