From: Gregory Herrero Date: Fri, 9 Jan 2015 12:39:01 +0000 (+0100) Subject: usb: dwc2: gadget: don't block after fifo flush timeout X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=48b20bcb3b2e9b15be1ebb9b574b003cffb033d5;p=linux-beck.git 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 Acked-by: Paul Zimmerman Signed-off-by: Gregory Herrero Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index 6d76e28a69da..e3bb525ae54d 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);