From patchwork Thu Sep 4 19:04:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Zimmerman X-Patchwork-Id: 36757 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f72.google.com (mail-yh0-f72.google.com [209.85.213.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7757820CBB for ; Thu, 4 Sep 2014 19:06:13 +0000 (UTC) Received: by mail-yh0-f72.google.com with SMTP id f73sf36294240yha.11 for ; Thu, 04 Sep 2014 12:06:13 -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=tHKwnlc5TYB/ArdEYoGd8AOOT0vvYaOQ12nxuf86XzI=; b=NZjK52t6CaP1KJxfr7YSZ/rOyX0DTk/84+PG/mr5vUUajcsLOS0ZgOtc3GeWVYjDB9 EeJFCBF9PYd/JPixJ3s/gDi3xtWiAa8sKo41NZQzqPQn/JJ+R0gcPAOoAqnuIHANzhKK 1AofLZaMiXCOXZf/IDguexCR+YEGOmOylzgpMrDZvQgNroej7Wg8hwPOuxjS9KMGYh9i UZ2pYPvanPd4cKg6bLOvgO9hEKmCUXXo1Z4NNgn66gnKK6kzff4x0CBopRn+h5ebFXGt ZeO18RDFAaLHgvRzts4IxySgR8EYQCmi3pGwDHs0ArNd0p05aI2H2gx5V2n6zW9z/D8v t2Ug== X-Gm-Message-State: ALoCoQkydNVVPtxRSZf/CDGP+jrKAf+SdJWh8YApAZd6EgO8+6BXQtdv/mdpcApiGoxDt9ez/fK1 X-Received: by 10.52.170.204 with SMTP id ao12mr3611137vdc.2.1409857573177; Thu, 04 Sep 2014 12:06:13 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.103.177 with SMTP id y46ls386277qge.79.gmail; Thu, 04 Sep 2014 12:06:13 -0700 (PDT) X-Received: by 10.52.129.165 with SMTP id nx5mr4312235vdb.25.1409857573112; Thu, 04 Sep 2014 12:06:13 -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 s10si3720171vdv.68.2014.09.04.12.06.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 04 Sep 2014 12:06:13 -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 hq11so11005490vcb.22 for ; Thu, 04 Sep 2014 12:06:13 -0700 (PDT) X-Received: by 10.52.120.51 with SMTP id kz19mr2859592vdb.95.1409857572975; Thu, 04 Sep 2014 12:06:12 -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 uj3csp885184vcb; Thu, 4 Sep 2014 12:06:12 -0700 (PDT) X-Received: by 10.66.222.74 with SMTP id qk10mr11831240pac.70.1409857571902; Thu, 04 Sep 2014 12:06:11 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id wx5si5248184pbc.143.2014.09.04.12.06.06 for ; Thu, 04 Sep 2014 12:06:07 -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 S1755168AbaIDTF5 (ORCPT + 2 others); Thu, 4 Sep 2014 15:05:57 -0400 Received: from smtprelay2.synopsys.com ([198.182.60.111]:40700 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755104AbaIDTF4 (ORCPT ); Thu, 4 Sep 2014 15:05:56 -0400 Received: from us02secmta2.synopsys.com (us02secmta2.synopsys.com [10.12.235.98]) by smtprelay.synopsys.com (Postfix) with ESMTP id A5EE610C01A1; Thu, 4 Sep 2014 12:05:56 -0700 (PDT) Received: from us02secmta2.internal.synopsys.com (us02secmta2.internal.synopsys.com [127.0.0.1]) by us02secmta2.internal.synopsys.com (Service) with ESMTP id 9972F55F14; Thu, 4 Sep 2014 12:05:56 -0700 (PDT) Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by us02secmta2.internal.synopsys.com (Service) with ESMTP id 7283C55F02; Thu, 4 Sep 2014 12:05:56 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 63A136AF; Thu, 4 Sep 2014 12:05:56 -0700 (PDT) Received: from us01dwvnc004.internal.synopsys.com (us01dwvnc004.internal.synopsys.com [10.15.114.106]) by mailhost.synopsys.com (Postfix) with ESMTP id 40FD96AE; Thu, 4 Sep 2014 12:05:56 -0700 (PDT) Received: from us01dwvnc004.internal.synopsys.com (localhost [127.0.0.1]) by us01dwvnc004.internal.synopsys.com (8.13.1/8.12.3) with ESMTP id s84J5tnO005248; Thu, 4 Sep 2014 12:05:55 -0700 Received: (from paulz@localhost) by us01dwvnc004.internal.synopsys.com (8.13.1/8.13.1/Submit) id s84J5oWt005247; Thu, 4 Sep 2014 12:05:50 -0700 From: Paul Zimmerman To: gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, r.baldyga@samsung.com, Marek Szyprowski , Paul Zimmerman Subject: [PATCH RESEND v3 07/12] usb: dwc2/gadget: break infinite loop in endpoint disable code Date: Thu, 4 Sep 2014 12:04:29 -0700 Message-Id: <1409857474-4497-8-git-send-email-paulz@synopsys.com> X-Mailer: git-send-email 1.7.0.5 In-Reply-To: <1409857474-4497-1-git-send-email-paulz@synopsys.com> References: <1409857474-4497-1-git-send-email-paulz@synopsys.com> 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: paul.zimmerman@synopsys.com 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. Signed-off-by: Marek Szyprowski Signed-off-by: Robert Baldyga Signed-off-by: Paul Zimmerman Reviewed-by: Felipe Balbi --- 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 86e4fd9..97368c4c 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c @@ -1651,6 +1651,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);