usb: musb: Adding names for IRQs in resource structure
Subsystems (7)
PATCH v4 1/1 usb: musb: Adding names for IRQs in resource structure
The resource data is getting automatically populated from a set of data generated from TI's hardware database for the OMAP platform, While we could hack in some exceptions to that tool to generate resources in a specific order, it seems less fragile to use the resource name instead.That way, no matter what order the resources are generated, the driver still work.
Modified the OMAP,Blackfin and Davinci architecture files to add the name of the IRQs in the resource structures and musb driver to use the get_irq_byname() api to get the device and dma irq numbers instead of using the index.
---
[Updated the changelog with background]
arch/arm/mach-davinci/usb.c | 2 ++ arch/arm/mach-omap2/usb-musb.c | 2 ++ arch/blackfin/mach-bf527/boards/cm_bf527.c | 2 ++ arch/blackfin/mach-bf527/boards/ezbrd.c | 2 ++ arch/blackfin/mach-bf527/boards/ezkit.c | 2 ++ arch/blackfin/mach-bf548/boards/cm_bf548.c | 2 ++ arch/blackfin/mach-bf548/boards/ezkit.c | 2 ++ drivers/usb/musb/cppi_dma.c | 2 +- drivers/usb/musb/musb_core.c | 2 +- drivers/usb/musb/musbhsdma.c | 2 +- 10 files changed, 17 insertions(+), 3 deletions(-)
arch/arm/mach-davinci/usb.c +2 -0
@@ -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" }, };
arch/arm/mach-omap2/usb-musb.c +2 -0
@@ -39,10 +39,12 @@ static struct resource musb_resources[] [1 ] = {/* general IRQ */ .start =INT_243X_HS_USB_MC , .flags =IORESOURCE_IRQ , + .name ="mc" , }, [2 ] = {/* DMA IRQ */ .start =INT_243X_HS_USB_DMA , .flags =IORESOURCE_IRQ , + .name ="dma" , }, };
arch/blackfin/mach-bf527/boards/cm_bf527.c +2 -0
@@ -82,11 +82,13 @@ static struct resource musb_resources[] .start = IRQ_USB_INT0, .end = IRQ_USB_INT0, .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, + .name = "mc" }, [2] = { /* DMA IRQ */ .start = IRQ_USB_DMA, .end = IRQ_USB_DMA, .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, + .name = "dma" }, };
arch/blackfin/mach-bf527/boards/ezbrd.c +2 -0
@@ -46,11 +46,13 @@ static struct resource musb_resources[] .start = IRQ_USB_INT0, .end = IRQ_USB_INT0, .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, + .name = "mc" }, [2] = { /* DMA IRQ */ .start = IRQ_USB_DMA, .end = IRQ_USB_DMA, .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, + .name = "dma" }, };
arch/blackfin/mach-bf527/boards/ezkit.c +2 -0
@@ -86,11 +86,13 @@ static struct resource musb_resources[] .start = IRQ_USB_INT0, .end = IRQ_USB_INT0, .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, + .name = "mc" }, [2] = { /* DMA IRQ */ .start = IRQ_USB_DMA, .end = IRQ_USB_DMA, .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, + .name = "dma" }, };
arch/blackfin/mach-bf548/boards/cm_bf548.c +2 -0
@@ -482,11 +482,13 @@ static struct resource musb_resources[] .start = IRQ_USB_INT0, .end = IRQ_USB_INT0, .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, + .name = "mc" }, [2] = { /* DMA IRQ */ .start = IRQ_USB_DMA, .end = IRQ_USB_DMA, .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, + .name = "dma" }, };
arch/blackfin/mach-bf548/boards/ezkit.c +2 -0
@@ -587,11 +587,13 @@ static struct resource musb_resources[] .start = IRQ_USB_INT0, .end = IRQ_USB_INT0, .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, + .name = "mc" }, [2] = { /* DMA IRQ */ .start = IRQ_USB_DMA, .end = IRQ_USB_DMA, .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, + .name = "dma" }, };
drivers/usb/musb/cppi_dma.c +1 -1
@@ -1307,7 +1307,7 @@ dma_controller_create(struct musb *musb,struct cppi *controller;struct device *dev = musb->controller;struct platform_device *pdev =to_platform_device (dev); -int irq =platform_get_irq (pdev,1 ); +int irq =platform_get_irq_byname (pdev,"dma" ); controller =kzalloc (sizeof *controller,GFP_KERNEL );if (!controller)
drivers/usb/musb/musb_core.c +1 -1
@@ -2203,7 +2203,7 @@ static u64 *orig_dma_mask;static int __init musb_probe (struct platform_device *pdev) {struct device *dev = &pdev->dev; -int irq =platform_get_irq (pdev,0 ); +int irq =platform_get_irq_byname (pdev,"mc" );int status;struct resource *iomem;void __iomem *base;
drivers/usb/musb/musbhsdma.c +1 -1
@@ -363,7 +363,7 @@ dma_controller_create(struct musb *musb,struct musb_dma_controller *controller;struct device *dev = musb->controller;struct platform_device *pdev =to_platform_device (dev); -int irq =platform_get_irq (pdev,1 ); +int irq =platform_get_irq_byname (pdev,"dma" );if (irq ==0 ) {dev_err (dev,"No DMA interrupt line!\n" );
Hi,
Quoted 6 lines · Hema
Index:
linux-omap-pm/arch/arm/mach-davinci/usb.c
===================================================================arch/arm/mach-davinci/usb.c +0
-0@@ -64,10 +64,12 @@ static struct resource usb_resources[] = {
arch/arm/mach-davinci/usb.c static struct resource usb_resources[] = · line 74
Quoted 10 lines
arch/arm/mach-davinci/usb.c +2
-0.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
Signature · 1 line
balbi
Hi,
Quoted 26 lines
-----Original Message-----
From: Balbi, Felipe
Sent: Wednesday, September 29, 2010 12:30 PM
To: Kalliguddi, Hema
Cc: [email protected]; [email protected]; Balbi, Felipe; Tony Lindgren; Kevin Hilman; Cousson, Benoit; Paul Walmsley; Mike Frysinger
Subject: Re: [PATCH v4] usb: musb: Adding names for IRQs in resource structureHi,
Quoted 13 lines · Hema
Index:
linux-omap-pm/arch/arm/mach-davinci/usb.c
===================================================================arch/arm/mach-davinci/usb.c +1
-0@@ -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,
Quoted 9 lines
arch/arm/mach-davinci/usb.c static struct resource usb_resources[] = · line 74
Quoted 3 lines
arch/arm/mach-davinci/usb.c +1
-0+ .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")onmusb-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.
Quoted 3 lines
Signature · 1 line
balbi
Quoted 37 lines · Hema
Hi,
Quoted 26 lines
-----Original Message-----
From: Balbi, Felipe
Sent: Wednesday, September 29, 2010 12:30 PM
To: Kalliguddi, Hema
Cc: [email protected]; [email protected]; Balbi, Felipe; Tony Lindgren; Kevin Hilman; Cousson, Benoit; Paul Walmsley; Mike Frysinger
Subject: Re: [PATCH v4] usb: musb: Adding names for IRQs in resource structureHi,
Quoted 13 lines · Hema
Index:
linux-omap-pm/arch/arm/mach-davinci/usb.c
===================================================================arch/arm/mach-davinci/usb.c +1
-0@@ -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,Quoted 9 lines
arch/arm/mach-davinci/usb.c static struct resource usb_resources[] = · line 74
Quoted 3 lines
arch/arm/mach-davinci/usb.c +1
-0+ .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")onmusb-core.c
Quoted 6 lines
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.
Signature · 1 line
balbi
Quoted 54 lines
-----Original Message-----
From: Balbi, Felipe
Sent: Wednesday, September 29, 2010 3:41 PM
To: Kalliguddi, Hema
Cc: Balbi, Felipe; [email protected]; [email protected]; Tony Lindgren; Kevin Hilman; Cousson, Benoit; Paul Walmsley; Mike Frysinger
Subject: Re: [PATCH v4] usb: musb: Adding names for IRQs in resource structureQuoted 33 lines · Hema
Hi,
Quoted 31 lines
-----Original Message-----
From: Balbi, Felipe
Sent: Wednesday, September 29, 2010 12:30 PM
To: Kalliguddi, Hema
Cc: [email protected]; [email protected]; Balbi, Felipe; Tony Lindgren; Kevin Hilman; Cousson, Benoit; Paul Walmsley; Mike Frysinger
Subject: Re: [PATCH v4] usb: musb: Adding names for IRQs in resource structureHi,
Quoted 6 lines · Hema
Index:
linux-omap-pm/arch/arm/mach-davinci/usb.c
===================================================================arch/arm/mach-davinci/usb.c +0
-0@@ -64,10 +64,12 @@ static struct resource usb_resources[] = {arch/arm/mach-davinci/usb.c static struct resource usb_resources[] = · line 74
Quoted 10 lines
arch/arm/mach-davinci/usb.c +2
-0.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
Quoted 1 line
Quoted 1 line
to be the first resource. Maybe adding a name like "regs" to
the memory
Quoted 4 lines
Quoted 3 lines
base and changing to
platform_get_resource_byname(pdev, "regs")onmusb-core.cIt does not mandate the base address to be the first
resource, as the api
Quoted 9 lines
Quoted 1 line
used for getting the base address takes the resource type as
parameter.
Quoted 4 lines
"
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.
That's Ok...
Quoted 3 lines
Signature · 1 line
balbi
Quoted 11 lines · Hema HK
The resource data is getting automatically populated from a set of data generated from TI's hardware database for the OMAP platform, While we could hack in some exceptions to that tool to generate resources in a specific order, it seems less fragile to use the resource name instead.That way, no matter what order the resources are generated, the driver still work.
Modified the OMAP,Blackfin and Davinci architecture files to add the name of the IRQs in the resource structures and musb driver to use the
get_irq_byname()api to get the device and dma irq numbers instead of using the index.
Quoted 7 lines
Signed-off-by Hema HK <[email protected]>Cc Felipe Balbi <[email protected]>Cc Tony Lindgren <[email protected]>Cc Kevin Hilman <[email protected]>Cc Cousson, Benoit <[email protected]>Cc Paul Walmsley <[email protected]>Cc Mike Frysinger <[email protected]>
if Felipe is ok with this, then i'm ok with this
-mike
A message that is not in the archive (sent off-list or not yet received): 1285777599-24245-1-git-send-email-hemahk-l0cyMroinI0@public.gmane.org
Kevin Hilman
Acked-byQuoted 11 lines · Hema HK
The resource data is getting automatically populated from a set of data generated from TI's hardware database for the OMAP platform, While we could hack in some exceptions to that tool to generate resources in a specific order, it seems less fragile to use the resource name instead.That way, no matter what order the resources are generated, the driver still work.
Modified the OMAP,Blackfin and Davinci architecture files to add the name of the IRQs in the resource structures and musb driver to use the
get_irq_byname()api to get the device and dma irq numbers instead of using the index.
Quoted 8 lines
Signed-off-by Hema HK <[email protected]>Cc Felipe Balbi <[email protected]>Cc Tony Lindgren <[email protected]>Cc Kevin Hilman <[email protected]>Cc Cousson, Benoit <[email protected]>Cc Paul Walmsley <[email protected]>Cc Mike Frysinger <[email protected]>---
For the davinci changes:
Kevin
Quoted 169 lines
[Updated the changelog with background]
arch/arm/mach-davinci/usb.c | 2 ++ arch/arm/mach-omap2/usb-musb.c | 2 ++ arch/blackfin/mach-bf527/boards/cm_bf527.c | 2 ++ arch/blackfin/mach-bf527/boards/ezbrd.c | 2 ++ arch/blackfin/mach-bf527/boards/ezkit.c | 2 ++ arch/blackfin/mach-bf548/boards/cm_bf548.c | 2 ++ arch/blackfin/mach-bf548/boards/ezkit.c | 2 ++ drivers/usb/musb/cppi_dma.c | 2 +- drivers/usb/musb/musb_core.c | 2 +- drivers/usb/musb/musbhsdma.c | 2 +- 10 files changed, 17 insertions(+), 3 deletions(-)Index:
linux-omap-pm/arch/arm/mach-davinci/usb.c
===================================================================arch/arm/mach-davinci/usb.c +2
-0@@ -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" }, };Index:
linux-omap-pm/arch/arm/mach-omap2/usb-musb.c
===================================================================arch/arm/mach-omap2/usb-musb.c +2
-0@@ -39,10 +39,12 @@ static struct resource musb_resources[] [1 ] = {/* general IRQ */ .start =INT_243X_HS_USB_MC , .flags =IORESOURCE_IRQ , + .name ="mc" , }, [2 ] = {/* DMA IRQ */ .start =INT_243X_HS_USB_DMA , .flags =IORESOURCE_IRQ , + .name ="dma" , }, };Index:
linux-omap-pm/arch/blackfin/mach-bf527/boards/cm_bf527.c
===================================================================arch/blackfin/mach-bf527/boards/cm_bf527.c +2
-0@@ -82,11 +82,13 @@ static struct resource musb_resources[] .start = IRQ_USB_INT0, .end = IRQ_USB_INT0, .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, + .name = "mc" }, [2] = { /* DMA IRQ */ .start = IRQ_USB_DMA, .end = IRQ_USB_DMA, .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, + .name = "dma" }, };Index:
linux-omap-pm/arch/blackfin/mach-bf527/boards/ezbrd.c
===================================================================arch/blackfin/mach-bf527/boards/ezbrd.c +2
-0@@ -46,11 +46,13 @@ static struct resource musb_resources[] .start = IRQ_USB_INT0, .end = IRQ_USB_INT0, .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, + .name = "mc" }, [2] = { /* DMA IRQ */ .start = IRQ_USB_DMA, .end = IRQ_USB_DMA, .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, + .name = "dma" }, };Index:
linux-omap-pm/arch/blackfin/mach-bf527/boards/ezkit.c
===================================================================arch/blackfin/mach-bf527/boards/ezkit.c +2
-0@@ -86,11 +86,13 @@ static struct resource musb_resources[] .start = IRQ_USB_INT0, .end = IRQ_USB_INT0, .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, + .name = "mc" }, [2] = { /* DMA IRQ */ .start = IRQ_USB_DMA, .end = IRQ_USB_DMA, .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, + .name = "dma" }, };Index:
linux-omap-pm/arch/blackfin/mach-bf548/boards/cm_bf548.c
===================================================================arch/blackfin/mach-bf548/boards/cm_bf548.c +2
-0@@ -482,11 +482,13 @@ static struct resource musb_resources[] .start = IRQ_USB_INT0, .end = IRQ_USB_INT0, .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, + .name = "mc" }, [2] = { /* DMA IRQ */ .start = IRQ_USB_DMA, .end = IRQ_USB_DMA, .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, + .name = "dma" }, };Index:
linux-omap-pm/arch/blackfin/mach-bf548/boards/ezkit.c
===================================================================arch/blackfin/mach-bf548/boards/ezkit.c +2
-0@@ -587,11 +587,13 @@ static struct resource musb_resources[] .start = IRQ_USB_INT0, .end = IRQ_USB_INT0, .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, + .name = "mc" }, [2] = { /* DMA IRQ */ .start = IRQ_USB_DMA, .end = IRQ_USB_DMA, .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, + .name = "dma" }, };Index:
linux-omap-pm/drivers/usb/musb/cppi_dma.c
===================================================================drivers/usb/musb/cppi_dma.c +1
-1@@ -1307,7 +1307,7 @@ dma_controller_create(struct musb *musb,struct cppi *controller;struct device *dev = musb->controller;struct platform_device *pdev =to_platform_device (dev); -int irq =platform_get_irq (pdev,1 ); +int irq =platform_get_irq_byname (pdev,"dma" ); controller =kzalloc (sizeof *controller,GFP_KERNEL );if (!controller)Index:
linux-omap-pm/drivers/usb/musb/musb_core.c
===================================================================drivers/usb/musb/musb_core.c +1
-1@@ -2203,7 +2203,7 @@ static u64 *orig_dma_mask;static int __init musb_probe (struct platform_device *pdev) {struct device *dev = &pdev->dev; -int irq =platform_get_irq (pdev,0 ); +int irq =platform_get_irq_byname (pdev,"mc" );int status;struct resource *iomem;void __iomem *base;Index:
linux-omap-pm/drivers/usb/musb/musbhsdma.c
===================================================================
drivers/usb/musb/musbhsdma.c dma_controller_create(struct musb *musb, · line 369
Quoted 8 lines
drivers/usb/musb/musbhsdma.c +1
-1@@ -363,7 +363,7 @@ dma_controller_create(struct musb *musb,struct musb_dma_controller *controller;struct device *dev = musb->controller;struct platform_device *pdev =to_platform_device (dev); -int irq =platform_get_irq (pdev,1 ); +int irq =platform_get_irq_byname (pdev,"dma" );if (irq ==0 ) {dev_err (dev,"No DMA interrupt line!\n" );
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Hello.
Quoted 24 lines · Kevin Hilman
Quoted 10 lines
The resource data is getting automatically populated from a set of data
generated from TI's hardware database for the OMAP platform, While we could hack in some exceptions to that tool to generate resources in a specific order, it seems less fragile to use the resource name
instead.That way, no matter what order the resources are generated, the
driver still work.Modified the OMAP,Blackfin and Davinci architecture files to add the name of the IRQs in the resource structures and musb driver to use the
get_irq_byname()api to get the device and dma irq numbers instead of using the index.Quoted 8 lines
Signed-off-by Hema HK <[email protected]>Cc Felipe Balbi <[email protected]>Cc Tony Lindgren <[email protected]>Cc Kevin Hilman <[email protected]>Cc Cousson, Benoit <[email protected]>Cc Paul Walmsley <[email protected]>Cc Mike Frysinger <[email protected]>---
For the davinci changes:
Acked-by Kevin Hilman <[email protected]>Kevin
[...]
Quoted 8 lines
Quoted 8 lines
Index:
linux-omap-pm/arch/arm/mach-davinci/usb.c
===================================================================arch/arm/mach-davinci/usb.c +0
-0@@ -64,10 +64,12 @@ static struct resource usb_resources[] = { .start = IRQ_USBINT, .flags = IORESOURCE_IRQ,
Quoted 8 lines
arch/arm/mach-davinci/usb.c static struct resource usb_resources[] = · line 74
Quoted 8 lines
arch/arm/mach-davinci/usb.c +2
-0+ .name = "mc" }, {/* placeholder for the dedicated CPPI IRQ */ .flags = IORESOURCE_IRQ, + .name = "dma" }, };
Argh! This failed to also modify da8xx_usb20_resources[]... :-(
WBR, Sergei
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 44 lines · Sergei Shtylyov
Hello.
Quoted 27 lines · Kevin Hilman
Quoted 13 lines
The resource data is getting automatically populated from a set of data generated from TI's hardware database for the OMAP platform, While we could hack in some exceptions to that tool to generate resources in a specific order, it seems less fragile to use the resource name instead.That way, no matter what order the resources are generated, the driver still work.
Modified the OMAP,Blackfin and Davinci architecture files to add the name of the IRQs
in the resource structures and musb driver to use theget_irq_byname()api to
get the device and dma irq numbers instead of using the index.Quoted 8 lines
Signed-off-by Hema HK <[email protected]>Cc Felipe Balbi <[email protected]>Cc Tony Lindgren <[email protected]>Cc Kevin Hilman <[email protected]>Cc Cousson, Benoit <[email protected]>Cc Paul Walmsley <[email protected]>Cc Mike Frysinger <[email protected]>---
For the davinci changes:
Acked-by Kevin Hilman <[email protected]>Kevin
[...]
Quoted 10 lines
Quoted 10 lines
Index:
linux-omap-pm/arch/arm/mach-davinci/usb.c
===================================================================arch/arm/mach-davinci/usb.c +1
-0@@ -64,10 +64,12 @@ static struct resource usb_resources[] = { .start = IRQ_USBINT, .flags = IORESOURCE_IRQ, + .name = "mc" },
Quoted 8 lines
Quoted 6 lines
arch/arm/mach-davinci/usb.c static struct resource usb_resources[] = · line 74
Quoted 6 lines
arch/arm/mach-davinci/usb.c +1
-0{ /* placeholder for the dedicated CPPI IRQ */ .flags = IORESOURCE_IRQ, + .name = "dma" }, };Argh! This failed to also modify da8xx_usb20_resources[]... :-(
I think when I posted these patch, da8xx support was not there in mainline. I will send patch to add this.
Regards,
Hema
Quoted 3 lines
WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): AANLkTimF3Eotqa+jZvzCJStguGrDEeS9V-XUGOTa9qBt-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Hello.
Quoted 49 lines · Hema
Quoted 40 lines
Quoted 27 lines
Quoted 13 lines
The resource data is getting automatically populated from a set of data generated from TI's hardware database for the OMAP platform, While we could hack in some exceptions to that tool to generate resources in a specific order, it seems less fragile to use the resource name instead.That way, no matter what order the resources are generated, the driver still work.
Modified the OMAP,Blackfin and Davinci architecture files to add the name of the IRQs
in the resource structures and musb driver to use theget_irq_byname()api to
get the device and dma irq numbers instead of using the index.Quoted 8 lines
Signed-off-by Hema HK<[email protected]>Cc Felipe Balbi<[email protected]>Cc Tony Lindgren<[email protected]>Cc Kevin Hilman<[email protected]>Cc Cousson, Benoit<[email protected]>Cc Paul Walmsley<[email protected]>Cc Mike Frysinger<[email protected]>---
For the davinci changes:
Acked-by Kevin Hilman<[email protected]>Kevin
[...]
Quoted 10 lines
Quoted 10 lines
Index:
linux-omap-pm/arch/arm/mach-davinci/usb.c
===================================================================arch/arm/mach-davinci/usb.c +1
-0@@ -64,10 +64,12 @@ static struct resource usb_resources[] = { .start = IRQ_USBINT, .flags = IORESOURCE_IRQ, + .name ="mc" },Quoted 8 lines
Quoted 6 lines
arch/arm/mach-davinci/usb.c static struct resource usb_resources[] = · line 74
Quoted 6 lines
arch/arm/mach-davinci/usb.c +1
-0{/* placeholder for the dedicated CPPI IRQ */ .flags = IORESOURCE_IRQ, + .name = "dma" }, };Argh! This failed to also modify da8xx_usb20_resources[]... :-(
Quoted 1 line
I think when I posted these patch, da8xx support was not there in mainline.
No, it was added long ago, before the glue layer itself.
Quoted 1 line
I will send patch to add this.
I will care about this myself now.
Quoted 2 lines
Regards,
Hema
WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 54 lines · Sergei Shtylyov
Hello.
Quoted 49 lines · Hema
Quoted 49 lines
Quoted 28 lines
Quoted 14 lines
The resource data is getting automatically populated from a set of data generated from TI's hardware database for the OMAP platform, While we could hack in some exceptions to that tool to generate resources in a specific order, it seems less fragile to use the resource name instead.That way, no matter what order the resources are generated, the driver still work.
Modified the OMAP,Blackfin and Davinci architecture files to add the name
of the IRQs
in the resource structures and musb driver to use theget_irq_byname()api to
get the device and dma irq numbers instead of using the index.Quoted 8 lines
Signed-off-by Hema HK<[email protected]>Cc Felipe Balbi<[email protected]>Cc Tony Lindgren<[email protected]>Cc Kevin Hilman<[email protected]>Cc Cousson, Benoit<[email protected]>Cc Paul Walmsley<[email protected]>Cc Mike Frysinger<[email protected]>---
For the davinci changes:
Acked-by Kevin Hilman<[email protected]>Kevin
[...]
Quoted 8 lines
Quoted 8 lines
Index:
linux-omap-pm/arch/arm/mach-davinci/usb.c
===================================================================arch/arm/mach-davinci/usb.c +0
-0@@ -64,10 +64,12 @@ static struct resource usb_resources[] = { .start = IRQ_USBINT, .flags = IORESOURCE_IRQ,Quoted 8 lines
arch/arm/mach-davinci/usb.c static struct resource usb_resources[] = · line 74
Quoted 8 lines
arch/arm/mach-davinci/usb.c +2
-0+ .name = "mc" }, { /* placeholder for the dedicated CPPI IRQ */ .flags = IORESOURCE_IRQ, + .name = "dma" }, };Argh! This failed to also modify da8xx_usb20_resources[]... :-(
Quoted 8 lines
Quoted 2 lines
I think when I posted these patch, da8xx support was not there in mainline.
No, it was added long ago, before the glue layer itself.
Quoted 1 line
I will send patch to add this.
I will care about this myself now.
Thanks.
Hema
Quoted 6 lines
Quoted 3 lines
Regards,
HemaWBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 53 lines · Sergei Shtylyov
Hello.
Quoted 48 lines · Hema
Quoted 48 lines
Quoted 27 lines
Quoted 13 lines
The resource data is getting automatically populated from a set of data generated from TI's hardware database for the OMAP platform, While we could hack in some exceptions to that tool to generate resources in a specific order, it seems less fragile to use the resource name instead.That way, no matter what order the resources are generated, the driver still work.
Modified the OMAP,Blackfin and Davinci architecture files to add the name of the IRQs
in the resource structures and musb driver to use theget_irq_byname()api to
get the device and dma irq numbers instead of using the index.Quoted 8 lines
Signed-off-by Hema HK<[email protected]>Cc Felipe Balbi<[email protected]>Cc Tony Lindgren<[email protected]>Cc Kevin Hilman<[email protected]>Cc Cousson, Benoit<[email protected]>Cc Paul Walmsley<[email protected]>Cc Mike Frysinger<[email protected]>---
For the davinci changes:
Acked-by Kevin Hilman<[email protected]>Kevin
[...]
Quoted 8 lines
Quoted 8 lines
Index:
linux-omap-pm/arch/arm/mach-davinci/usb.c
===================================================================arch/arm/mach-davinci/usb.c +0
-0@@ -64,10 +64,12 @@ static struct resource usb_resources[] = { .start = IRQ_USBINT, .flags = IORESOURCE_IRQ,Quoted 8 lines
arch/arm/mach-davinci/usb.c static struct resource usb_resources[] = · line 74
Quoted 8 lines
arch/arm/mach-davinci/usb.c +2
-0+ .name = "mc" }, {/* placeholder for the dedicated CPPI IRQ */ .flags = IORESOURCE_IRQ, + .name = "dma" }, };Argh! This failed to also modify da8xx_usb20_resources[]... :-(
Quoted 7 lines
Quoted 1 line
I think when I posted these patch, da8xx support was not there in mainline.
No, it was added long ago, before the glue layer itself.
Quoted 1 line
I will send patch to add this.
I will care about this myself now.
Thanks, send me the patch and I'll put to the same branch.
Signature · 1 line
balbi
A message that is not in the archive (sent off-list or not yet received): 20101210132053.GN6027-UiBtZHVXSwEVvW8u9ZQWYwjfymiNCTlR@public.gmane.org
Hello.
Quoted 51 lines · Felipe Balbi
Quoted 50 lines
Quoted 50 lines
Quoted 40 lines
Quoted 27 lines
Quoted 13 lines
The resource data is getting automatically populated from a set of data generated from TI's hardware database for the OMAP platform, While we could hack in some exceptions to that tool to generate resources in a specific order, it seems less fragile to use the resource name instead.That way, no matter what order the resources are generated, the driver still work.
Modified the OMAP,Blackfin and Davinci architecture files to add the name of the IRQs
in the resource structures and musb driver to use theget_irq_byname()api to
get the device and dma irq numbers instead of using the index.Quoted 8 lines
Signed-off-by Hema HK<[email protected]>Cc Felipe Balbi<[email protected]>Cc Tony Lindgren<[email protected]>Cc Kevin Hilman<[email protected]>Cc Cousson, Benoit<[email protected]>Cc Paul Walmsley<[email protected]>Cc Mike Frysinger<[email protected]>---
For the davinci changes:
Acked-by Kevin Hilman<[email protected]>Kevin
[...]
Quoted 10 lines
Quoted 10 lines
Index:
linux-omap-pm/arch/arm/mach-davinci/usb.c
===================================================================arch/arm/mach-davinci/usb.c +1
-0@@ -64,10 +64,12 @@ static struct resource usb_resources[] = { .start = IRQ_USBINT, .flags = IORESOURCE_IRQ, + .name ="mc" },Quoted 8 lines
Quoted 6 lines
arch/arm/mach-davinci/usb.c static struct resource usb_resources[] = · line 74
Quoted 6 lines
arch/arm/mach-davinci/usb.c +1
-0{/* placeholder for the dedicated CPPI IRQ */ .flags = IORESOURCE_IRQ, + .name = "dma" }, };Argh! This failed to also modify da8xx_usb20_resources[]... :-(
I think when I posted these patch, da8xx support was not there in mainline.
Quoted 7 lines
Quoted 5 lines
No, it was added long ago, before the glue layer itself.
Quoted 1 line
I will send patch to add this.
I will care about this myself now.
Thanks, send me the patch and I'll put to the same branch.
I was thinking about pushing this thru the DaVinci tree. Well, I'll post
to both lists and let you figure out who will apply it... :-)
WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi,
Quoted 23 lines · Sergei Shtylyov
Quoted 22 lines
Quoted 22 lines
Quoted 19 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Index:
linux-omap-pm/arch/arm/mach-davinci/usb.c
===================================================================arch/arm/mach-davinci/usb.c +1
-0@@ -64,10 +64,12 @@ static struct resource usb_resources[] = { .start = IRQ_USBINT, .flags = IORESOURCE_IRQ, + .name ="mc" },Quoted 8 lines
Quoted 6 lines
arch/arm/mach-davinci/usb.c static struct resource usb_resources[] = · line 74
Quoted 6 lines
arch/arm/mach-davinci/usb.c +1
-0{/* placeholder for the dedicated CPPI IRQ */ .flags = IORESOURCE_IRQ, + .name = "dma" }, };Argh! This failed to also modify da8xx_usb20_resources[]... :-(
Quoted 1 line
I think when I posted these patch, da8xx support was not there in mainline.
No, it was added long ago, before the glue layer itself.
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
I will send patch to add this.
I will care about this myself now.
Thanks, send me the patch and I'll put to the same branch.
I was thinking about pushing this thru the DaVinci tree. Well, I'll
post to both lists and let you figure out who will apply it... :-)
If Kevin picks it up, fine by me :-)
Signature · 5 lines
balbi -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Hello.
Quoted 25 lines · Felipe Balbi
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 19 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Index:
linux-omap-pm/arch/arm/mach-davinci/usb.c
===================================================================arch/arm/mach-davinci/usb.c +1
-0@@ -64,10 +64,12 @@ static struct resource usb_resources[] = { .start = IRQ_USBINT, .flags = IORESOURCE_IRQ, + .name ="mc" },Quoted 8 lines
Quoted 6 lines
arch/arm/mach-davinci/usb.c static struct resource usb_resources[] = · line 74
Quoted 6 lines
arch/arm/mach-davinci/usb.c +1
-0{/* placeholder for the dedicated CPPI IRQ */ .flags = IORESOURCE_IRQ, + .name = "dma" }, };Argh! This failed to also modify da8xx_usb20_resources[]... :-(
Quoted 1 line
I think when I posted these patch, da8xx support was not there in mainline.
No, it was added long ago, before the glue layer itself.
Quoted 1 line
I will send patch to add this.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
I will care about this myself now.
Thanks, send me the patch and I'll put to the same branch.
I was thinking about pushing this thru the DaVinci tree. Well, I'll
post to both lists and let you figure out who will apply it... :-)If Kevin picks it up, fine by me :-)
Hm, I thought this patch has already been applied but it's only in Greg's
usb-next branch yet. I guess it's too late to update it now, so a separate patch should still be created? However, it's not a hot fix now as I thought, and doesn't apply to linux-davinci.git...
WBR, Sergei