Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1659384ybi; Thu, 20 Jun 2019 01:24:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqxuQFumE4GuNGJjx6r1XeeUu5Zfrw/TPSeyZFNoJV2GxRkjjB25/65ShRFQRbNko6n45ksA X-Received: by 2002:a62:1c93:: with SMTP id c141mr27522778pfc.9.1561019069194; Thu, 20 Jun 2019 01:24:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561019069; cv=none; d=google.com; s=arc-20160816; b=XV4TECRwaStPzUYbkXjDSst0TXaBmWOjEDkCYP0c6n6Xba2+9oqAzN5yGAV7OyMi3l L6PxBFqFLdnn/i1JtbL0F6zFxjAURIw2I0uZJcmTkv2Rf5YP9J2SG5BIDfYVmsFl25b/ tPVtVUeziT68s9pCYlCfSy5HxGvUWbpmwX7W7pSMoW0X4WvSbxpStpaIX92eqjlt/90F uV8xvDybqc7YN/eEXoxEr92jOEWpL9Lan/dOce1tn3DJ/tq78m3g7gTHCQZU4yXyec/B apAXOc2ziion/dX6cg0fXsYwkaWN8EwCd8Wg5WsDDdtpihXzpHpd4BiigkKeKgG+XkQt IoiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=Mk4YSkKcrYjl5WmnpOnZZcLNRDRuNFcb/IM65O58eZA=; b=fCoyBg0MuoNA2ayEC7DQHOzqztQvysXbStnDQ9G9HzgmgHGP7vngPfPZAOed4O4NsO Ogw6bkP7LVl6d1x2WKB2s0wegSNy7mdRCmEHun+Tt8GNuqdvSOrDTAzXChTG7KuednXf g8wu5Be7Pp9OJUj/m0a7svFDP6zMCH6auCmqGDXkc/HO7Ad1zyHfOqs0QA4EzRKpLt86 1LBk8SBXrsCxRs+22ofRG5o8RA8tcjRfnO8DWp9SfcjjkJxzxb0QCLej2In5lPNNtUAv 3NxnuSj1SMm1oKHxs81kSnkWFhI7f+j/P+MJQ8LmlAHdJNxP55XOHnJ1qeSn8DZMNSfk JVdw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k18si18602945pfk.103.2019.06.20.01.24.13; Thu, 20 Jun 2019 01:24:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726211AbfFTIYJ (ORCPT + 99 others); Thu, 20 Jun 2019 04:24:09 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:25351 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725875AbfFTIYI (ORCPT ); Thu, 20 Jun 2019 04:24:08 -0400 X-UUID: 08f55a0eb60b4e66b6d932667d67b14c-20190620 X-UUID: 08f55a0eb60b4e66b6d932667d67b14c-20190620 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1696634026; Thu, 20 Jun 2019 16:24:02 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS32N2.mediatek.inc (172.27.4.72) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 20 Jun 2019 16:24:00 +0800 Received: from [10.17.3.153] (172.27.4.253) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 20 Jun 2019 16:23:59 +0800 Message-ID: <1561019039.19385.0.camel@mhfsdcap03> Subject: Re: [PATCH] usb: dwc3: remove unused @lock member of dwc3_ep struct From: Chunfeng Yun To: Felipe Balbi CC: Greg Kroah-Hartman , Matthias Brugger , , , , , Date: Thu, 20 Jun 2019 16:23:59 +0800 In-Reply-To: <87pnn8brej.fsf@linux.intel.com> References: <342af01a252a9ef9457a6a6ec653a40698058fbc.1561018149.git.chunfeng.yun@mediatek.com> <87pnn8brej.fsf@linux.intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-SNTS-SMTP: 01A5D843B4FDBFD9D544853B9237509789D7821AEC7631073D22747FFC6924A62000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, 2019-06-20 at 11:19 +0300, Felipe Balbi wrote: > Hi, > > Chunfeng Yun writes: > > > The member @lock of dwc2_ep struct is only initialized, > > and not used elsewhere, so remove it. Sorry, I need send v2 to fix typo of dwc2_ep > > > > Signed-off-by: Chunfeng Yun > > --- > > drivers/usb/dwc3/core.h | 2 -- > > drivers/usb/dwc3/gadget.c | 2 -- > > 2 files changed, 4 deletions(-) > > > > diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h > > index f19cbeb01087..72d28cb14bdf 100644 > > --- a/drivers/usb/dwc3/core.h > > +++ b/drivers/usb/dwc3/core.h > > @@ -649,7 +649,6 @@ struct dwc3_event_buffer { > > * @cancelled_list: list of cancelled requests for this endpoint > > * @pending_list: list of pending requests for this endpoint > > * @started_list: list of started requests on this endpoint > > - * @lock: spinlock for endpoint request queue traversal > > * @regs: pointer to first endpoint register > > * @trb_pool: array of transaction buffers > > * @trb_pool_dma: dma address of @trb_pool > > @@ -677,7 +676,6 @@ struct dwc3_ep { > > struct list_head pending_list; > > struct list_head started_list; > > > > - spinlock_t lock; > > void __iomem *regs; > > > > struct dwc3_trb *trb_pool; > > diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c > > index d67655384eb2..7f75da30caba 100644 > > --- a/drivers/usb/dwc3/gadget.c > > +++ b/drivers/usb/dwc3/gadget.c > > @@ -2251,8 +2251,6 @@ static int dwc3_gadget_init_endpoint(struct dwc3 *dwc, u8 epnum) > > dep->endpoint.comp_desc = NULL; > > } > > > > - spin_lock_init(&dep->lock); > > heh, thanks. This is left-over from when I playing with further > paralelizing the driver. Turned out that there are not enough gains to > justify that work. I'll apply this patch. >