From patchwork Mon Sep 21 08:08:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 53957 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id DCEAA22B1E for ; Mon, 21 Sep 2015 08:08:46 +0000 (UTC) Received: by wicgb1 with SMTP id gb1sf28339141wic.3 for ; Mon, 21 Sep 2015 01:08:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :mime-version:content-type:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=6ZLGEQ3g3Mv9J5OBJlw8H/pYXEVrh9z/GvaLVO+kg38=; b=GN51JwQWY85EGjXRZd9bfs0HS4Q7coHRLHSp7VjC/xnsV4jfj7biTBC7BMr8yQJQTa jGQ5hVw2VxGjla7GgoTkBK4MquLGwvGMT1cRvct43CvafpqtE7j7UkqMv87pmCp8vYuU kvrttpbHxN8gjxZ/dIH1FUghziB9d7PTdgBL9pw8XDZc6EHQby8J71t3yznUN6RMlbfN 8JtawmRF2mGGkBoJcP76Oc2J5sIbuxpdK9v0FPNuo/IdMRkwoRYGkVc2uaUP/9OroiPu HROfE+pkMoqxElIG+7SGTGB1xERhMALT5Bk81fOpf+QMY2uApp0VWQvtt2xL81itBNmv eK4g== X-Gm-Message-State: ALoCoQkcyMtIwowR2JeUisTZNLive9OV8h0pdgKjCbnxQXXza0qFeXS4KiW9QG4ccla93yG+3dmp X-Received: by 10.180.9.104 with SMTP id y8mr1800982wia.7.1442822926150; Mon, 21 Sep 2015 01:08:46 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.45.39 with SMTP id j7ls403256lam.77.gmail; Mon, 21 Sep 2015 01:08:46 -0700 (PDT) X-Received: by 10.112.77.197 with SMTP id u5mr5707840lbw.120.1442822925994; Mon, 21 Sep 2015 01:08:45 -0700 (PDT) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id e76si837974lfe.27.2015.09.21.01.08.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Sep 2015 01:08:45 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by lahg1 with SMTP id g1so63208558lah.1 for ; Mon, 21 Sep 2015 01:08:45 -0700 (PDT) X-Received: by 10.112.199.137 with SMTP id jk9mr6513848lbc.86.1442822925859; Mon, 21 Sep 2015 01:08:45 -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.112.59.35 with SMTP id w3csp1581543lbq; Mon, 21 Sep 2015 01:08:45 -0700 (PDT) X-Received: by 10.66.139.133 with SMTP id qy5mr23486833pab.44.1442822924909; Mon, 21 Sep 2015 01:08:44 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gz10si35963404pbd.226.2015.09.21.01.08.44; Mon, 21 Sep 2015 01:08:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756186AbbIUIIm (ORCPT + 4 others); Mon, 21 Sep 2015 04:08:42 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:54843 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756097AbbIUIIl (ORCPT ); Mon, 21 Sep 2015 04:08:41 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id t8L88fAU019225 for ; Mon, 21 Sep 2015 03:08:41 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id t8L88fXQ030813 for ; Mon, 21 Sep 2015 03:08:41 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.224.2; Mon, 21 Sep 2015 03:08:40 -0500 Received: from rockdesk.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id t8L88c62012226; Mon, 21 Sep 2015 03:08:39 -0500 From: Roger Quadros To: CC: , , Roger Quadros Subject: [PATCH] usb: dwc3: gadget: Fix BUG in RT config Date: Mon, 21 Sep 2015 11:08:36 +0300 Message-ID: <1442822916-26238-1-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 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: rogerq@ti.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.215.48 as permitted sender) smtp.mailfrom=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: , Using spin_lock() in hard irq handler is pointless and causes a BUG() in RT (real-time) configuration so get rid of it. Signed-off-by: Roger Quadros --- drivers/usb/dwc3/gadget.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 0c25704..1e8bdf8 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -2665,8 +2665,6 @@ static irqreturn_t dwc3_interrupt(int irq, void *_dwc) int i; irqreturn_t ret = IRQ_NONE; - spin_lock(&dwc->lock); - for (i = 0; i < dwc->num_event_buffers; i++) { irqreturn_t status; @@ -2675,8 +2673,6 @@ static irqreturn_t dwc3_interrupt(int irq, void *_dwc) ret = status; } - spin_unlock(&dwc->lock); - return ret; }