From: Felipe Balbi Subject: Re: [PATCH v4] usb: musb: Adding names for IRQs in resource structure Date: Wed, 29 Sep 2010 13:11:12 +0300 Message-ID: <20100929101112.GR2728@legolas.emea.dhcp.ti.com> References: <1285777599-24245-1-git-send-email-hemahk@ti.com> <20100929065952.GJ2728@legolas.emea.dhcp.ti.com> Reply-To: balbi@ti.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Return-path: Received: from comal.ext.ti.com ([198.47.26.152]:44743 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751333Ab0I2KWR (ORCPT ); Wed, 29 Sep 2010 06:22:17 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: "Kalliguddi, Hema" Cc: "Balbi, Felipe" , "linux-omap@vger.kernel.org" , "linux-usb@vger.kernel.org" , Tony Lindgren , Kevin Hilman , "Cousson, Benoit" , Paul Walmsley , Mike Frysinger On Wed, Sep 29, 2010 at 03:54:45AM -0500, Kalliguddi, Hema wrote: > Hi, > >>-----Original Message----- >>From: Balbi, Felipe >>Sent: Wednesday, September 29, 2010 12:30 PM >>To: Kalliguddi, Hema >>Cc: linux-omap@vger.kernel.org; linux-usb@vger.kernel.org; >>Balbi, Felipe; Tony Lindgren; Kevin Hilman; Cousson, Benoit; >>Paul Walmsley; Mike Frysinger >>Subject: Re: [PATCH v4] usb: musb: Adding names for IRQs in >>resource structure >> >>Hi, >> >>On Wed, Sep 29, 2010 at 11:26:39AM -0500, Kalliguddi, Hema wrote: >>>Index: linux-omap-pm/arch/arm/mach-davinci/usb.c >>>=================================================================== >>>--- linux-omap-pm.orig/arch/arm/mach-davinci/usb.c >>>+++ linux-omap-pm/arch/arm/mach-davinci/usb.c >>>@@ -64,10 +64,12 @@ static struct resource usb_resources[] = >>> { >>> .start = IRQ_USBINT, >>> .flags = IORESOURCE_IRQ, >>>+ .name = "mc" >>> }, >>> { >>> /* placeholder for the dedicated CPPI IRQ */ >>> .flags = IORESOURCE_IRQ, >>>+ .name = "dma" >>> }, >>> }; >> >>you add names only to the IRQs, this will still require the memory base >>to be the first resource. Maybe adding a name like "regs" to the memory >>base and changing to platform_get_resource_byname(pdev, "regs") on >>musb-core.c >> >It does not mandate the base address to be the first resource, as the api >used for getting the base address takes the resource type as parameter. >"platform_get_resource(struct platform_device *dev,unsigned int type, >unsigned int num)". but it mandates the base addresses have to be in >certain order if there are multiple base address.Since for musb there >is one base address. true :-p Sorry about that. Just noise. -- balbi