From patchwork Fri Jul 18 11:39:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Baldyga X-Patchwork-Id: 33834 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 78BDC20CA0 for ; Fri, 18 Jul 2014 11:43:11 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id eb12sf13824923oac.9 for ; Fri, 18 Jul 2014 04:43:10 -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=leRiU5qpJcXec3drlrVk+WbXVWJAEnQd8JGrkI9WNsQ=; b=U8ILXhlurKv/eVhd3mRIJTH8MEbALNJgm1nfc+yC8NB8FBnv/ywovIkdoIfBopVAXH weVL+WBeWspVVToau5gdOomsyj/qNPIIr1njP91EjtwakHXB6OWZxUEF3Kxta5QUTgyX 8tpTnJRpUTyu115uNQzcD6izeOlT8apFoLJff1JOqI/P85Vtn9ljGAtyfD3i3cBmCqc1 Jo88ytX9yeQXuPDOGaRKQ5LGFQpvujMTE8oHXqdv2gx4qiiFUSSyTV0S1b4AEk0vUi9H a4eGof70TnpdHvNYmGgL2H/gMr3n3aJPRkWO22BYRS4S8m6jfoEyETLM5vO4xOstVuD2 NSmg== X-Gm-Message-State: ALoCoQk9gPS0b8RWQ+TsmkMc8AcmLldVCtWU8vaVEMhsByn+IymiOpOehh+AwnMTkWyD/XwFOydv X-Received: by 10.42.151.67 with SMTP id d3mr2382681icw.6.1405683790685; Fri, 18 Jul 2014 04:43:10 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.32.203 with SMTP id h69ls970667qgh.56.gmail; Fri, 18 Jul 2014 04:43:10 -0700 (PDT) X-Received: by 10.52.9.68 with SMTP id x4mr998984vda.20.1405683790596; Fri, 18 Jul 2014 04:43:10 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id t2si5292222vcs.89.2014.07.18.04.43.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 18 Jul 2014 04:43:10 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id hy4so7226529vcb.13 for ; Fri, 18 Jul 2014 04:43:10 -0700 (PDT) X-Received: by 10.52.244.81 with SMTP id xe17mr4166580vdc.24.1405683790515; Fri, 18 Jul 2014 04:43:10 -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 tc5csp3555vcb; Fri, 18 Jul 2014 04:43:10 -0700 (PDT) X-Received: by 10.70.45.97 with SMTP id l1mr4262831pdm.148.1405683789613; Fri, 18 Jul 2014 04:43:09 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ct2si5653331pbc.92.2014.07.18.04.43.03; Fri, 18 Jul 2014 04:43:03 -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 S965513AbaGRLmP (ORCPT + 24 others); Fri, 18 Jul 2014 07:42:15 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:25752 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755753AbaGRLkN (ORCPT ); Fri, 18 Jul 2014 07:40:13 -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 <0N8W00I6DOEZNH90@mailout3.samsung.com>; Fri, 18 Jul 2014 20:40:11 +0900 (KST) X-AuditID: cbfee61b-f79f86d00000144c-31-53c9079bf432 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 25.74.05196.B9709C35; Fri, 18 Jul 2014 20:40:11 +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 <0N8W002CQOE11160@mmp1.samsung.com>; Fri, 18 Jul 2014 20:40:11 +0900 (KST) From: Robert Baldyga To: balbi@ti.com Cc: paulz@synopsys.com, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, m.szyprowski@samsung.com, andrzej.p@samsung.com, Robert Baldyga Subject: [PATCH v3 07/12] usb: dwc2/gadget: break infinite loop in endpoint disable code Date: Fri, 18 Jul 2014 13:39:32 +0200 Message-id: <1405683577-11226-8-git-send-email-r.baldyga@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1405683577-11226-1-git-send-email-r.baldyga@samsung.com> References: <1405683577-11226-1-git-send-email-r.baldyga@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBLMWRmVeSWpSXmKPExsVy+t9jAd3Z7CeDDRa81bGY9bKdxeLg/XqL 5sXr2Swu75rDZrFoWSuzxdojd9kttk+ZzmTx4PBOdgcOj/1z17B79G1ZxeixZf9nRo/jN7Yz eXzeJBfAGsVlk5Kak1mWWqRvl8CVserqXqaCJ6wVnQ8fMjcwPmHpYuTkkBAwkVgz7wKULSZx 4d56ti5GLg4hgUWMEsdvnmaGcNqZJGbcnMIKUsUmoCOx5fsERhBbREBAYv2LS+wgRcwCJxgl Ov5fYANJCAtEScx53A1WxCKgKrHl8SSwZl4BV4n57w6wQayTkzh5bDJYnFPATaLt0X+gMziA trlKTPvKP4GRdwEjwypG0dSC5ILipPRcI73ixNzi0rx0veT83E2M4PB6Jr2DcVWDxSFGAQ5G JR5ei5vHg4VYE8uKK3MPMUpwMCuJ8GbfBwrxpiRWVqUW5ccXleakFh9ilOZgURLnPdhqHSgk kJ5YkpqdmlqQWgSTZeLglGpgTPsTtbqi83gXt0dn3tfc+z++bynKe+b5/vbJsstXPcqqtc5c eOB/K+5DlKPrT6PXO7Nc3orsYNW2uFf3wbVSJNj/kUr89ndmm/WKKpR+Zoe2dv7g4+FiF1zq MX/2zoU+x/VXTiica2dapu1lohJmppiZ4HNn/jPt81uYFvuviF/A2X6CoWKqEktxRqKhFnNR cSIA9haHRysCAAA= 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.182 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 21d21de..2220882 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c @@ -1652,6 +1652,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);