From patchwork Wed Jul 16 10:22:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Baldyga X-Patchwork-Id: 33721 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f72.google.com (mail-pa0-f72.google.com [209.85.220.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B69A9201F1 for ; Wed, 16 Jul 2014 10:25:14 +0000 (UTC) Received: by mail-pa0-f72.google.com with SMTP id eu11sf5278930pac.3 for ; Wed, 16 Jul 2014 03:25:14 -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=qpZ8WxaTq+O/cBWBo9hqcO4yem8DL35TAKRIjx8spY8=; b=EyEEUrs3Aie7v6RaerEbRumhI93RJvBKik9x5cMpLtXd0B8QviUc9HsRMKUTGfmpjb yVYAM9WBQxxd0Cy+YDWNxtVi/489HNooimHSu6WtrL/pEfzaCJUptPQo/OtiNryrOuZs DeJNVgkt6e8OLo+4/uxJvm617d11giyKz50yz6tb9Pjj9M+fo6Hapq42iF+JuSeBHQ07 vKDJJbNP6chxPcBUnBDnU0IY8YBbxxLBrGprlgH//uDEXFntd6+U/ZMUClAbc0XSH64u c8G4C5RP45K/kNsR846w6mllgLWAvOpahrydUTTGDZ9rf1az0LgyX0tckFL82CQE41+q 6z6w== X-Gm-Message-State: ALoCoQmFS58XR2mLR6Z/42Ick7VSi2O9UGLbFNI7Na8LjtAnLYHIGTqd2O2KRdVBK9768kbq200P X-Received: by 10.66.160.34 with SMTP id xh2mr13676696pab.6.1405506314017; Wed, 16 Jul 2014 03:25:14 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.44.75 with SMTP id f69ls151213qga.96.gmail; Wed, 16 Jul 2014 03:25:13 -0700 (PDT) X-Received: by 10.220.92.135 with SMTP id r7mr27374764vcm.11.1405506313924; Wed, 16 Jul 2014 03:25:13 -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 s10si8091801vcx.51.2014.07.16.03.25.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 16 Jul 2014 03:25:13 -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 ij19so1162459vcb.25 for ; Wed, 16 Jul 2014 03:25:13 -0700 (PDT) X-Received: by 10.221.26.10 with SMTP id rk10mr27998230vcb.0.1405506313840; Wed, 16 Jul 2014 03:25:13 -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 tc5csp285452vcb; Wed, 16 Jul 2014 03:25:13 -0700 (PDT) X-Received: by 10.68.78.66 with SMTP id z2mr5825938pbw.71.1405506313014; Wed, 16 Jul 2014 03:25:13 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hb11si14119533pbd.88.2014.07.16.03.25.12; Wed, 16 Jul 2014 03:25:12 -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 S933081AbaGPKZL (ORCPT + 3 others); Wed, 16 Jul 2014 06:25:11 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:34377 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758621AbaGPKXK (ORCPT ); Wed, 16 Jul 2014 06:23:10 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N8S002Y7VIKD800@mailout2.samsung.com>; Wed, 16 Jul 2014 19:23:08 +0900 (KST) X-AuditID: cbfee61a-f79e46d00000134f-8b-53c6528c6e42 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id FD.10.04943.C8256C35; Wed, 16 Jul 2014 19:23:08 +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 <0N8S00MJHVHJNH00@mmp2.samsung.com>; Wed, 16 Jul 2014 19:23:08 +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 v2 07/12] usb: dwc2/gadget: break infinite loop in endpoint disable code Date: Wed, 16 Jul 2014 12:22:25 +0200 Message-id: <1405506150-16185-8-git-send-email-r.baldyga@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1405506150-16185-1-git-send-email-r.baldyga@samsung.com> References: <1405506150-16185-1-git-send-email-r.baldyga@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJLMWRmVeSWpSXmKPExsVy+t9jQd2eoGPBBjdf8VvMetnOYnHwfr1F 8+L1bBaXd81hs1i0rJXZYu2Ru+wW26dMZ7J4cHgnuwOHx/65a9g9+rasYvTYsv8zo8fxG9uZ PD5vkgtgjeKySUnNySxLLdK3S+DKWHV1L1PBE9aKzocPmRsYn7B0MXJySAiYSHyZeYwJwhaT uHBvPVsXIxeHkMB0Roll2/azQjjtTBL/Wk+zgVSxCehIbPk+gRHEFhEQkFj/4hI7SBGzwAlG iY7/F8CKhAWiJD7t6WAGsVkEVCVa/v0Ha+AVcJWYvOwbG8Q6OYmTxyazgticAm4Sa143s4PY QkA1x9ctY5rAyLuAkWEVo2hqQXJBcVJ6rqFecWJucWleul5yfu4mRnCAPZPawbiyweIQowAH oxIP74aQo8FCrIllxZW5hxglOJiVRHgd/I8FC/GmJFZWpRblxxeV5qQWH2KU5mBREuc90God KCSQnliSmp2aWpBaBJNl4uCUamAstJ6RkHSk0/8al9Klr5HLLCfIG5kuPswZG3l3esHidw4z vb7d6Ki/uIXzoGT1tMzkq/Uviqf+OttbNbtU85gGZ/A6idD2M994/r9/Eh1vNDNt4nr18LUq M9uD9sRMPbBJZaVG5UVX4biKHFNDYyNz1wNs51akhy9usze/dkbO6b7/lI1XjK2UWIozEg21 mIuKEwEIwXv4LAIAAA== 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.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 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);