diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2014-05-29 13:29:31 +0200 |
---|---|---|
committer | Marek Szyprowski <m.szyprowski@samsung.com> | 2014-07-14 05:06:31 -0700 |
commit | bc6af55b81d6003449d6b54e6a934f01c8d063b6 (patch) | |
tree | d7da890065f5c8cf47ab31a69a66c31930c5f849 /drivers | |
parent | 4ddc6876b5107e5ea4ab8c816a8bc4a20b21bd34 (diff) | |
download | linux-3.10-bc6af55b81d6003449d6b54e6a934f01c8d063b6.tar.gz linux-3.10-bc6af55b81d6003449d6b54e6a934f01c8d063b6.tar.bz2 linux-3.10-bc6af55b81d6003449d6b54e6a934f01c8d063b6.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')
-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); |