From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 20 Aug 2012 21:52:42 +0200 (CEST) Received: from Chamillionaire.breakpoint.cc ([80.244.247.6]:36094 "EHLO Chamillionaire.breakpoint.cc" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S1903547Ab2HTTwf (ORCPT ); Mon, 20 Aug 2012 21:52:35 +0200 Received: from bigeasy by Chamillionaire.breakpoint.cc with local (Exim 4.72) (envelope-from ) id 1T3Y1Y-00048l-Qs; Mon, 20 Aug 2012 21:52:33 +0200 Date: Mon, 20 Aug 2012 21:52:31 +0200 From: Sebastian Andrzej Siewior To: Kevin Cernekee Cc: Sebastian Andrzej Siewior , balbi@ti.com, ralf@linux-mips.org, linux-mips@linux-mips.org, linux-usb@vger.kernel.org Subject: Re: [PATCH] usb: gadget: bcm63xx UDC driver Message-ID: <20120820195231.GA7087@breakpoint.cc> References: <97cb21b8063a02a9664baf8b749ae200@localhost> <20120819201714.GA3152@breakpoint.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-archive-position: 34297 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: sebastian@breakpoint.cc Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips Return-Path: On Sun, Aug 19, 2012 at 01:53:26PM -0700, Kevin Cernekee wrote: > > According to this code, i in iudma[] can be in 1..5. You could have more than > > one IRQ. The comment above this for loop is point less. So I think if you can > > only have _one_ idma irq than you could remove the for loop in > > bcm63xx_udc_data_isr(). > > There are 6 IUDMA channels, and each one always has a dedicated > interrupt line. IRQ resource #0 is the control (vbus/speed/cfg/etc.) > IRQ, and IRQ resources #1-6 are the IUDMA (IN/OUT data) IRQs. Maybe > it would be good to add a longer comment to clarify this? Now that I look at the code again, I see what I've missed. So you can have multiple irqs in the range #1-6. Why not pass the iudma struct then? Passing the struct instead of a range is good thing. Sebastian