Commit a5e10292 authored by Marek Szyprowski's avatar Marek Szyprowski Committed by Greg Kroah-Hartman

usb: dwc2/gadget: break infinite loop in endpoint disable code

commit e0cbe595 upstream.

This patch fixes possible freeze caused by infinite loop in interrupt
context.
Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: default avatarRobert Baldyga <r.baldyga@samsung.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 93ce959d
...@@ -1650,6 +1650,7 @@ static void s3c_hsotg_txfifo_flush(struct s3c_hsotg *hsotg, unsigned int idx) ...@@ -1650,6 +1650,7 @@ static void s3c_hsotg_txfifo_flush(struct s3c_hsotg *hsotg, unsigned int idx)
dev_err(hsotg->dev, dev_err(hsotg->dev,
"%s: timeout flushing fifo (GRSTCTL=%08x)\n", "%s: timeout flushing fifo (GRSTCTL=%08x)\n",
__func__, val); __func__, val);
break;
} }
udelay(1); udelay(1);
......
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