From patchwork Mon Sep 8 09:45:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Baldyga X-Patchwork-Id: 36950 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f197.google.com (mail-ie0-f197.google.com [209.85.223.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 24C1420491 for ; Mon, 8 Sep 2014 09:46:01 +0000 (UTC) Received: by mail-ie0-f197.google.com with SMTP id rp18sf74605580iec.0 for ; Mon, 08 Sep 2014 02:46:00 -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=Vlc8u7TmoyR8SSf3+dEO/u1B9woD1fODeT1AoXP75Ow=; b=g41+kFexX1Thh6WPZNRaSACyKEnKbFzZCyoVIGaEBVFGm+gozQYx7ETHb6Z5tAFBQ3 qzWyEEXj6DH7EMSNJmCJX+JwAKEGTqirhWcZu+Uh9ZUt78pg1OM+qYdgtoRb15Oeh6Rz GiuIiTXm+uHoQhjYqWeXjIoPglrDcNnLI0PrbBjkfhUkWIQc7oEmiu/AArYAw/m94xQi 47xoLQImrgb/qTM2AVBHfkWa56nqaOeUDS7ymth03brMkNKDmv1Iiwg69d03Yy2R2ce/ vIF6ZTqqyXCnBLkb78FBZ9VJg+Ybsve3SYrCpxmNk8TX4lVwK6umyMJBo8RxOjSnzlzw 8amw== X-Gm-Message-State: ALoCoQmfJdlHMKLUOLOKSSktfxAZkEb09vFmv9hGxO0rgpds42+SLVZnjbyMVNHrhnGR00s+x5ZA X-Received: by 10.50.118.100 with SMTP id kl4mr12204659igb.8.1410169560769; Mon, 08 Sep 2014 02:46:00 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.21.167 with SMTP id 36ls444240qgl.81.gmail; Mon, 08 Sep 2014 02:46:00 -0700 (PDT) X-Received: by 10.52.30.2 with SMTP id o2mr20743111vdh.12.1410169560636; Mon, 08 Sep 2014 02:46:00 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id fv14si4305159vdb.41.2014.09.08.02.46.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 08 Sep 2014 02:46:00 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id hq11so15298670vcb.0 for ; Mon, 08 Sep 2014 02:46:00 -0700 (PDT) X-Received: by 10.220.86.193 with SMTP id t1mr24621729vcl.22.1410169560576; Mon, 08 Sep 2014 02:46:00 -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.45.67 with SMTP id uj3csp106459vcb; Mon, 8 Sep 2014 02:46:00 -0700 (PDT) X-Received: by 10.68.136.100 with SMTP id pz4mr18201945pbb.119.1410169559730; Mon, 08 Sep 2014 02:45:59 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gi11si13788723pbd.231.2014.09.08.02.45.59 for ; Mon, 08 Sep 2014 02:45:59 -0700 (PDT) Received-SPF: none (google.com: stable-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 S1754013AbaIHJp6 (ORCPT + 1 other); Mon, 8 Sep 2014 05:45:58 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:23154 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752941AbaIHJp4 (ORCPT ); Mon, 8 Sep 2014 05:45:56 -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 <0NBK00BGLTSIYU70@mailout1.samsung.com>; Mon, 08 Sep 2014 18:45:54 +0900 (KST) X-AuditID: cbfee61b-f79f86d00000144c-c1-540d7ad22757 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 49.6F.05196.2DA7D045; Mon, 08 Sep 2014 18:45:54 +0900 (KST) Received: from AMDC2122.DIGITAL.local ([106.120.53.17]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NBK001BQTRY5140@mmp1.samsung.com>; Mon, 08 Sep 2014 18:45:54 +0900 (KST) From: Robert Baldyga To: gregkh@linuxfoundation.org Cc: Paul.Zimmerman@synopsys.com, balbi@ti.com, linux-usb@vger.kernel.org, stable@vger.kernel.org, Marek Szyprowski , Robert Baldyga Subject: [PATCH stable 3/6] usb: dwc2/gadget: break infinite loop in endpoint disable code Date: Mon, 08 Sep 2014 11:45:29 +0200 Message-id: <1410169532-16212-4-git-send-email-r.baldyga@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1410169532-16212-1-git-send-email-r.baldyga@samsung.com> References: <1410169532-16212-1-git-send-email-r.baldyga@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprMLMWRmVeSWpSXmKPExsVy+t9jAd1LVbwhBg+2qVocvF9v0bx4PZvF omWtzBZrj9xlt3j0cCurxYPDO9ktFmx8xOjA7rF/7hp2j74tqxg9tuz/zOhx/MZ2Jo/Pm+QC WKO4bFJSczLLUov07RK4Mp7NWcla8IS1YsGim0wNjE9Yuhg5OSQETCR2LN7ACmGLSVy4t56t i5GLQ0hgEaPEhvdfmCCcdiaJub+PMYFUsQnoSGz5PoERxBYRkJN4cvsPM4jNLLCTUeL5PDBb WCBG4tbbc2A2i4CqxPfWaWDbeAVcJc6/WMcOsU1O4uSxyWCbOQXcJI5euww2Xwio5t6cftYJ jLwLGBlWMYqmFiQXFCel5xrpFSfmFpfmpesl5+duYgQH1TPpHYyrGiwOMQpwMCrx8HJc5gkR Yk0sK67MPcQowcGsJMIbnMMbIsSbklhZlVqUH19UmpNafIhRmoNFSZz3YKt1oJBAemJJanZq akFqEUyWiYNTqoEx73Rj68M+V04376Cw/v0CE/w3P/zi+W6DyxXWqKj31jk17Rem3TswbXfs iv/fsidlB/w+3Zlz8LhA5Jyy40wrJXvv5dfsaTV2vK9ldriH//K6xTmPJHO57ArDwmyqb/JL nZC0u7tw10MjMwf+XWKaoqfXT5y92XYSj/WTmt6nhvOPPpbQWuWixFKckWioxVxUnAgAfK1P jSYCAAA= Sender: stable-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: stable@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.169 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 70eab95..f3198dc 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c @@ -1650,6 +1650,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);