From patchwork Tue Sep 9 08:48: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: 37052 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 9C9A820566 for ; Tue, 9 Sep 2014 08:48:59 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id vb8sf81541439obc.8 for ; Tue, 09 Sep 2014 01:48:59 -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=NiEnbK1a5Y8iyS+YsAwh0QeFj6rOOV5MxVExhnFT1ow=; b=Bh+/dGEVCPxQid4dyfyjPUuVxBZt3tVn1eLGrv5nNEB2djS9uTSD/aqhD7Dg1ofggl qoTbbQfmAu5/zSiOJ+ouT3Rvfi/5Xkyk9vTXxdZN+OdDIEMBpouEzCmtFeY2UhFNLerm LUUERoF2db0SqtuBgCrh/vncKxD10sHygju5srrtRUOLERrfsyadap/HPzN0xHTIMuIQ c2QZoPUVuz3iFIPfhocc52fDTOOKfHW8jvQvsGafQld1EssWaT1uCWhuDZ22lHQQa558 3bAYuDgAa1atKdPcmta6qMiUwvEGMN1rjFitgn0+Cy0uYKARXMBgBi1VZU39erl2zl8Z dFBA== X-Gm-Message-State: ALoCoQkewdRoo30EjXTgWBXYAq/huHcDvuqEt16Xi0YwXeR2KU8YEOoHCj4B9YUisVYCkR/qDa3Q X-Received: by 10.42.66.12 with SMTP id n12mr10240688ici.16.1410252539251; Tue, 09 Sep 2014 01:48:59 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.16.232 with SMTP id 95ls2108682qgb.94.gmail; Tue, 09 Sep 2014 01:48:59 -0700 (PDT) X-Received: by 10.52.38.102 with SMTP id f6mr4089182vdk.56.1410252539181; Tue, 09 Sep 2014 01:48:59 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id e14si4952687vcv.56.2014.09.09.01.48.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 09 Sep 2014 01:48:59 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.177 as permitted sender) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id la4so132588vcb.36 for ; Tue, 09 Sep 2014 01:48:59 -0700 (PDT) X-Received: by 10.52.165.129 with SMTP id yy1mr3994762vdb.57.1410252539110; Tue, 09 Sep 2014 01:48:59 -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 uj3csp251559vcb; Tue, 9 Sep 2014 01:48:58 -0700 (PDT) X-Received: by 10.68.208.8 with SMTP id ma8mr27749938pbc.88.1410252538270; Tue, 09 Sep 2014 01:48:58 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bx1si22014959pad.129.2014.09.09.01.48.57 for ; Tue, 09 Sep 2014 01:48:58 -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 S932381AbaIIIsy (ORCPT + 1 other); Tue, 9 Sep 2014 04:48:54 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:47586 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932276AbaIIIsv (ORCPT ); Tue, 9 Sep 2014 04:48:51 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NBM00J0FLT2YO30@mailout4.samsung.com>; Tue, 09 Sep 2014 17:48:38 +0900 (KST) X-AuditID: cbfee61a-f79e46d00000134f-4c-540ebee639ba Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 84.BC.04943.6EEBE045; Tue, 09 Sep 2014 17:48:38 +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 <0NBM00JXYLSK8KA0@mmp1.samsung.com>; Tue, 09 Sep 2014 17:48:38 +0900 (KST) From: Robert Baldyga To: gregkh@linuxfoundation.org Cc: Paul.Zimmerman@synopsys.com, balbi@ti.com, stable@vger.kernel.org, linux-usb@vger.kernel.org, Marek Szyprowski , Robert Baldyga Subject: [PATCH stable 3/6] usb: dwc2/gadget: break infinite loop in endpoint disable code Date: Tue, 09 Sep 2014 10:48:13 +0200 Message-id: <1410252496-13814-4-git-send-email-r.baldyga@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1410252496-13814-1-git-send-email-r.baldyga@samsung.com> References: <1410252496-13814-1-git-send-email-r.baldyga@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprILMWRmVeSWpSXmKPExsVy+t9jAd1n+/hCDB4fUbU4eL/eonnxejaL RctamS3WHrnLbvHo4VZWiweHd7JbLNj4iNGB3WP/3DXsHn1bVjF6bNn/mdHj+I3tTB6fN8kF sEZx2aSk5mSWpRbp2yVwZXQdcC7oZqv48LO2gbGNtYuRk0NCwETixq+zLBC2mMSFe+vZuhi5 OIQEFjFK7JgznQXCaWeSeNazjQmkik1AR2LL9wmMILaIgJzEk9t/mEGKmAV2Mko8mw1RJCwQ I3Hr7TlmEJtFQFWi498ysBW8Aq4SnzYeYYZYJydx8thkoDM4ODgF3CQWXFYHCQsBlcye+ph9 AiPvAkaGVYyiqQXJBcVJ6bmGesWJucWleel6yfm5mxjBAfVMagfjygaLQ4wCHIxKPLwZwXwh QqyJZcWVuYcYJTiYlUR4LfcChXhTEiurUovy44tKc1KLDzFKc7AoifMeaLUOFBJITyxJzU5N LUgtgskycXBKNTBuqTs+u8vfXoDT6n/DDEXpnbs+unx5uu7GrwvnVtW8+zxpgeQJfq0D2yu0 2BenWe2fn/hzp+r9BsEOZ6sk/WfLBO+UM3yNK3/R98j5el1Gx67pSxyvsm1/5s6QmDOPyVBW OOxPtMCnzt7zAtPya7ewTTBapB8cueNQytPok+YtMsY7xTINFzYpsRRnJBpqMRcVJwIAqlST kiQCAAA= 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.177 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. Cc: # 3.16.x 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);