From patchwork Tue Aug 19 08:54:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Baldyga X-Patchwork-Id: 35578 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f197.google.com (mail-pd0-f197.google.com [209.85.192.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EC6312136C for ; Tue, 19 Aug 2014 09:01:58 +0000 (UTC) Received: by mail-pd0-f197.google.com with SMTP id y10sf48321355pdj.0 for ; Tue, 19 Aug 2014 02:01:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=8yflTeql2rj3QxkzUBrf1Rpg1nQv/pYIgE6Sn0ARetU=; b=ALBpFk1fYQzhgCi2501s5f1awfYoWyXZREvKGXswIOD1p6rD5iz9TREnaeZeuf5awm p2aOK30Aa2HCxXE3Nt0uJQF2NJqxd7HmUah6cx3BKc9XmGzCkhRj5VeesIiUoa7wTFzM zMpGDYgQRPQkqrPdIk699FVdVFuhs7Q18RfcHA+UhsPM1Q7VcIBJ+8cWrqkvgV1iuI4z ixkd8rGOPyCTwSMuqT5Oip/0mY0AjOU4urO7RgnN/O+BLgTc7qQCounOYHuO7jLdvWNP L8YYKSdkiLOx8Wqgen3IPPvuR/XmO/WIooXteZkhWwuiL/96nwk6vPP1moDifz9xQD7k xldA== X-Gm-Message-State: ALoCoQmkThDrIQPEQMycyfswyBT7sa8auaLFwo7b+WviVNT0iAj0oQnTGX23WZYyJIV/6mOnR+Xj X-Received: by 10.66.246.229 with SMTP id xz5mr20694096pac.34.1408438911647; Tue, 19 Aug 2014 02:01:51 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.37.148 with SMTP id r20ls2702858qgr.17.gmail; Tue, 19 Aug 2014 02:01:51 -0700 (PDT) X-Received: by 10.52.245.66 with SMTP id xm2mr1440282vdc.36.1408438911540; Tue, 19 Aug 2014 02:01:51 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id th4si8346078vdc.66.2014.08.19.02.01.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 19 Aug 2014 02:01:51 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id hq11so7090873vcb.16 for ; Tue, 19 Aug 2014 02:01:51 -0700 (PDT) X-Received: by 10.220.49.10 with SMTP id t10mr604188vcf.34.1408438911174; Tue, 19 Aug 2014 02:01:51 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp221864vcb; Tue, 19 Aug 2014 02:01:50 -0700 (PDT) X-Received: by 10.70.21.202 with SMTP id x10mr48826903pde.92.1408438910070; Tue, 19 Aug 2014 02:01:50 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zr6si25838957pac.49.2014.08.19.02.01.41 for ; Tue, 19 Aug 2014 02:01:42 -0700 (PDT) Received-SPF: none (google.com: linux-usb-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751624AbaHSI7I (ORCPT + 2 others); Tue, 19 Aug 2014 04:59:08 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:55516 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750721AbaHSI7F (ORCPT ); Tue, 19 Aug 2014 04:59:05 -0400 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NAJ00A4BQAGG9E0@mailout1.samsung.com>; Tue, 19 Aug 2014 17:59:04 +0900 (KST) X-AuditID: cbfee61b-f79f86d00000144c-7d-53f311d8320f Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 64.A0.05196.8D113F35; Tue, 19 Aug 2014 17:59:04 +0900 (KST) Received: from AMDC2122.DIGITAL.local ([106.120.53.17]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NAJ0011RQ2NYC00@mmp2.samsung.com>; Tue, 19 Aug 2014 17:59:04 +0900 (KST) From: Robert Baldyga To: Paul.Zimmerman@synopsys.com Cc: gregkh@linuxfoundation.org, balbi@ti.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, m.szyprowski@samsung.com, andrzej.p@samsung.com, Robert Baldyga Subject: [PATCH RESEND v3 07/12] usb: dwc2/gadget: break infinite loop in endpoint disable code Date: Tue, 19 Aug 2014 10:54:13 +0200 Message-id: <1408438458-3317-8-git-send-email-r.baldyga@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1408438458-3317-1-git-send-email-r.baldyga@samsung.com> References: <1408438458-3317-1-git-send-email-r.baldyga@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJLMWRmVeSWpSXmKPExsVy+t9jQd0bgp+DDVbu07CY9bKdxeLg/XqL 5sXr2Swu75rDZrFoWSuzxdojd9ktHj3cymrx4PBOdgcOj/1z17B79G1ZxeixZf9nRo/jN7Yz eXzeJBfAGsVlk5Kak1mWWqRvl8CVMe/DefaCJ6wVU1v2szQwPmHpYuTkkBAwkbjfd54RwhaT uHBvPVsXIxeHkMB0RolLPXvZIZx2JomNKz+zglSxCehIbPk+AaxDREBe4vrGmywgRcwChxgl Xt05xgSSEBZIlLi/8D0ziM0ioCrxYnU32DpeAReJWzOns0Ksk5M4eWwymM0p4Crxdt8sdhBb CKhmc+sZtgmMvAsYGVYxiqYWJBcUJ6XnGukVJ+YWl+al6yXn525iBAfYM+kdjKsaLA4xCnAw KvHwKnz5GCzEmlhWXJkLdA0Hs5IIr+OLT8FCvCmJlVWpRfnxRaU5qcWHGKU5WJTEeQ+2WgcK CaQnlqRmp6YWpBbBZJk4OKUaGM0KMi0mLX4RVqtTY6GT0RXDbHDix99N9zgaFYxrrga9vsW3 U+KSyOwt+9QO9YRUOczMNj3kF2XrdHOaZ7jkvfebI2XMftb8/Lb+VcrLuYuitHuadi7u13Zi 59h7/JzT+m6vQqmVc0zfpal0OK+LFPpz3vT8VdtX2mmveibHfVzq8XuLdsmpf0osxRmJhlrM RcWJAJ3rc0QsAgAA Sender: linux-usb-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: patch@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Marek Szyprowski This patch fixes possible freeze caused by infinite loop in interrupt context. Signed-off-by: Marek Szyprowski Signed-off-by: Robert Baldyga --- drivers/usb/dwc2/gadget.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index 3faa4f3..c829c05 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c @@ -1651,6 +1651,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);