diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2014-05-29 13:29:31 +0200 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-18 12:00:04 +0900 |
commit | f04f1cbf3b978fc52eab987de4fa654f251691dd (patch) | |
tree | 327b77ccdd34a3d2c1223a4ab18f87cf7b6d6139 /drivers/usb | |
parent | 1ba7b419a4df5c5495016b24a7f16dd1d23514b6 (diff) | |
download | linux-3.10-f04f1cbf3b978fc52eab987de4fa654f251691dd.tar.gz linux-3.10-f04f1cbf3b978fc52eab987de4fa654f251691dd.tar.bz2 linux-3.10-f04f1cbf3b978fc52eab987de4fa654f251691dd.zip |
usb: s3c-hsotg: break infinite loop in endpoint disable code
This patch fixes possible freeze caused by infinite loop in interrupt
context.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ie70ffda63d3608e5e73d87b41d0966d225cc2879
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/s3c-hsotg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c index 3c4d802be12..2cd3fc394d0 100644 --- a/drivers/usb/gadget/s3c-hsotg.c +++ b/drivers/usb/gadget/s3c-hsotg.c @@ -383,6 +383,7 @@ static void s3c_hsotg_init_fifo(struct s3c_hsotg *hsotg) dev_err(hsotg->dev, "%s: timeout flushing fifos (GRSTCTL=%08x)\n", __func__, val); + break; } udelay(1); @@ -1791,6 +1792,7 @@ static void s3c_hsotg_txfifo_flush(struct s3c_hsotg *hsotg, unsigned int idx) dev_err(hsotg->dev, "%s: timeout flushing fifo (GRSTCTL=%08x)\n", __func__, val); + break; } udelay(1); |