Re: [PATCH] irqdomain: Initialize number of IRQs for simple domains
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Thierry Reding <thierry.reding@xxxxxxxxxxxxxxxxx>
- Subject: Re: [PATCH] irqdomain: Initialize number of IRQs for simple domains
- From: "Cousson, Benoit" <b-cousson@xxxxxx>
- Date: Fri, 6 Jan 2012 17:58:43 +0100
- Cc: <devicetree-discuss@xxxxxxxxxxxxxxxx>, Tony Lindgren <tony@xxxxxxxxxxx>, Catalin Marinas <catalin.marinas@xxxxxxx>, Daniel Walker <dwalker@xxxxxxxxxx>, Russell King <linux@xxxxxxxxxxxxxxxx>, Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>, David Brown <davidb@xxxxxxxxxxxxxx>, "open list:ARM/QUALCOMM MSM..." <linux-arm-msm@xxxxxxxxxxxxxxx>, Rob Herring <rob.herring@xxxxxxxxxxx>, Barry Song <baohua.song@xxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, open list: OMAP SUPPORT <linux-omap@xxxxxxxxxxxxxxx>, Andrew Victor <linux@xxxxxxxxxxxx>, "open list:ARM/ATMEL AT91RM9..." <linux-arm-kernel@xxxxxxxxxxxxxxxxxxx>, open list <linux-kernel@xxxxxxxxxxxxxxx>, Bryan Huntsman <bryanh@xxxxxxxxxxxxxx>, Richard Zhao <richard.zhao@xxxxxxxxxxxxx>, Sascha Hauer <kernel@xxxxxxxxxxxxxx>, David Woodhouse <dwmw2@xxxxxxxxxxxxx>, ;
- Illegal-object: Syntax error in CC: address found on vger.kernel.org: CC: ; ^-missing semicolon to end mail group, extraneous tokens in mailbox, missing end of mailbox
- In-reply-to: <1325860112-22051-1-git-send-email-thierry.reding@avionic-design.de>
- Organization: Texas Instruments
- User-agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0
Hi Thierry,
On 1/6/2012 3:28 PM, Thierry Reding wrote:
The irq_domain_add() function needs the number of interrupts in the
domain to properly initialize them. In addition the allocated domain
is now returned by the irq_domain_{add,generate}_simple() helpers.
[...]
diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c
index d587560..bf67781 100644
--- a/arch/arm/mach-omap2/board-generic.c
+++ b/arch/arm/mach-omap2/board-generic.c
@@ -66,8 +66,11 @@ static struct of_device_id intc_match[] __initdata = {
static void __init omap_generic_init(void)
{
struct device_node *node = of_find_matching_node(NULL, intc_match);
- if (node)
- irq_domain_add_simple(node, 0);
+ if (node) {
+ struct irq_domain *domain;
+ domain = irq_domain_add_simple(node, 0, INTCPS_NR_IRQS);
The number of interrupts will depend on the OMAP generation. That one is
just valid for the 3430 INTC controller.
Since the previous code was using zero, I guess that using 0 there
should be fine.
Moreover, that piece of code should not exist anymore on 3.3 if the
series I sent last month to leverage Rob's DT interrupt init is merged [1].
I've just ping Rob and Grant on that series to get a status.
Regards,
Benoit
[1] http://www.spinics.net/lists/linux-omap/msg62124.html
--
To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux ARM Kernel]
[Linux ARM]
[Linux Omap]
[Fedora ARM]
[Linux for Sparc]
[IETF Annouce]
[Security]
[Bugtraq]
[Linux OMAP]
[Linux MIPS]
[ECOS]
[Asterisk Internet PBX]
[Linux API]