From patchwork Tue Sep 9 08:44:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Baldyga X-Patchwork-Id: 37056 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f197.google.com (mail-ob0-f197.google.com [209.85.214.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 83E0A20566 for ; Tue, 9 Sep 2014 08:52:42 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id vb8sf81555378obc.8 for ; Tue, 09 Sep 2014 01:52:42 -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=PrCwwFvipjt98IuKON5AIEoJgkRcKuLjIuptYCf7WKw=; b=Ta6p2pDATbHJWgCVAbv93z9C5u/JSw9JCFCeSRbrGFvd5xCbZyBOqrgjl8fYW1MECh Q/5ZUIAyswW8TeJFeERTzHopNV6wsVLQDNP+Xyec+7zJf9TSaGASakPs3AcudiGnYzEt BddL+B9uxXQLCwIsid4NCw9sPoc+0+HdYZRK26VctS+Dgw4VNk0x+YGXt9I+o/RjQsbQ OjpM092XzKB5TPg+V1U6dhygRaEoz1EyEb5PxTL1sYDvR6SLkdb/sDVQdxBU2v69stET mUrXhFpMeZWSs3fkVvCMDDQILzEjCaIp+nDktbcnmVKRaFvcaG+aNQNpQcHSdnrFcJ90 w2ow== X-Gm-Message-State: ALoCoQkhlVCXrw46MFv8/GP97U2Bo/uLfamxVZnqk/8k2eI1nP7/5aBGDDPDAePsQYclNDp6gtBN X-Received: by 10.182.117.231 with SMTP id kh7mr21170356obb.0.1410252762159; Tue, 09 Sep 2014 01:52:42 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.42.16 with SMTP id b16ls607331qga.16.gmail; Tue, 09 Sep 2014 01:52:42 -0700 (PDT) X-Received: by 10.220.105.201 with SMTP id u9mr29628289vco.11.1410252762053; Tue, 09 Sep 2014 01:52:42 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id qh2si4945015vcb.81.2014.09.09.01.52.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 09 Sep 2014 01:52:42 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.180 as permitted sender) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id lf12so16236259vcb.25 for ; Tue, 09 Sep 2014 01:52:42 -0700 (PDT) X-Received: by 10.220.159.204 with SMTP id k12mr29114189vcx.15.1410252761978; Tue, 09 Sep 2014 01:52:41 -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 uj3csp251939vcb; Tue, 9 Sep 2014 01:52:41 -0700 (PDT) X-Received: by 10.68.191.134 with SMTP id gy6mr27948259pbc.2.1410252761066; Tue, 09 Sep 2014 01:52:41 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id by5si22123467pad.78.2014.09.09.01.52.40 for ; Tue, 09 Sep 2014 01:52:41 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-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 S1756072AbaIIIwh (ORCPT + 26 others); Tue, 9 Sep 2014 04:52:37 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:51149 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755566AbaIIIoh (ORCPT ); Tue, 9 Sep 2014 04:44:37 -0400 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NBM00FDNLMB54D0@mailout3.samsung.com>; Tue, 09 Sep 2014 17:44:35 +0900 (KST) X-AuditID: cbfee61b-f79f86d00000144c-20-540ebdf38aa2 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 69.53.05196.3FDBE045; Tue, 09 Sep 2014 17:44:35 +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 <0NBM00GF4LLTCSA0@mmp2.samsung.com>; Tue, 09 Sep 2014 17:44:35 +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, Marek Szyprowski , Robert Baldyga Subject: [PATCH 3/6] usb: dwc2/gadget: break infinite loop in endpoint disable code Date: Tue, 09 Sep 2014 10:44:10 +0200 Message-id: <1410252253-13687-4-git-send-email-r.baldyga@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1410252253-13687-1-git-send-email-r.baldyga@samsung.com> References: <1410252253-13687-1-git-send-email-r.baldyga@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprCLMWRmVeSWpSXmKPExsVy+t9jQd3Pe/lCDDr+mVgcvF9v0bx4PZvF 5V1z2CwWLWtltlh75C67xaOHW1ktHhzeye7A7rF/7hp2j74tqxg9tuz/zOhx/MZ2Jo/Pm+QC WKO4bFJSczLLUov07RK4Mq68uc5e8IS1ovFYA3MD4xOWLkZODgkBE4nX308xQthiEhfurWfr YuTiEBKYziixvX8pC4TTziTxdf5ZVpAqNgEdiS3fJ4B1iAjIS1zfeBOsiFlgH6PE9E/b2EES wgKhElM77oOtYBFQlTi9ZhVYM6+Aq8Tcfz+YINbJSZw8NhkszingJjG/t58NxBYCqul8spZx AiPvAkaGVYyiqQXJBcVJ6blGesWJucWleel6yfm5mxjBYfVMegfjqgaLQ4wCHIxKPLwZwXwh QqyJZcWVuYcYJTiYlUR4r+wGCvGmJFZWpRblxxeV5qQWH2KU5mBREuc92GodKCSQnliSmp2a WpBaBJNl4uCUamA0TttTf9AmRdrXS9X1c1nHdD5xNWXBKMOrJpNCel+EfAra/5mzIvtwidja LqaCc4oaqw6WOh8pzY29kxpTW8NfltbN/5R19641enuU2Oq7tuqZZ/8pvvtaQJptRvyXqKdz TY4uXdod93ld24pp0XtzY4rkDzP4PNL7zLfsl8W1N283n9BuFFRiKc5INNRiLipOBABgW1cV JwIAAA== Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: linux-kernel-owner@vger.kernel.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.180 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 fd556e0..a451eef 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c @@ -1649,6 +1649,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);