From: David Brown <davidb@codeaurora.org>
To: Thierry Reding <thierry.reding@avionic-design.de>
Cc: "Tony Lindgren" <tony@atomide.com>,
"Catalin Marinas" <catalin.marinas@arm.com>,
"Nicolas Ferre" <nicolas.ferre@atmel.com>,
"Grant Likely" <grant.likely@secretlab.ca>,
"Daniel Walker" <dwalker@fifo99.com>,
"Jamie Iles" <jamie@jamieiles.com>,
"Russell King" <linux@arm.linux.org.uk>,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
"Jean-Christophe Plagniol-Villard" <plagnioj@jcrosoft.com>,
"open list:ARM/QUALCOMM MSM..." <linux-arm-msm@vger.kernel.org>,
devicetree-discuss@lists.ozlabs.org,
"Rob Herring" <rob.herring@calxeda.com>,
"Barry Song" <baohua.song@csr.com>,
"Thomas Gleixner" <tglx@linutronix.de>,
"open list:OMAP SUPPORT" <linux-omap@vger.kernel.org>,
"Andrew Victor" <linux@maxim.org.za>,
"open list:ARM/ATMEL AT91RM9..."
<linux-arm-kernel@lists.infradead.org>,
"open list" <linux-kernel@vger.kernel.org>,
"Bryan Huntsman" <bryanh@codeaurora.org>
Subject: Re: [PATCH] irqdomain: Initialize number of IRQs for simple domains
Date: Fri, 6 Jan 2012 08:07:44 -0800 [thread overview]
Message-ID: <20120106160744.GA7687@codeaurora.org> (raw)
In-Reply-To: <1325860112-22051-1-git-send-email-thierry.reding@avionic-design.de>
On Fri, Jan 06, 2012 at 03:28:25PM +0100, Thierry Reding wrote:
> diff --git a/arch/arm/mach-msm/board-msm8x60.c b/arch/arm/mach-msm/board-msm8x60.c
> index 0a11342..a50c7e2 100644
> --- a/arch/arm/mach-msm/board-msm8x60.c
> +++ b/arch/arm/mach-msm/board-msm8x60.c
> @@ -84,8 +84,11 @@ static void __init msm8x60_dt_init(void)
>
> node = of_find_matching_node_by_address(NULL, msm_dt_gic_match,
> MSM8X60_QGIC_DIST_PHYS);
> - if (node)
> - irq_domain_add_simple(node, GIC_SPI_START);
> + if (node) {
> + struct irq_domain *domain = irq_domain_add_simple(node,
> + GIC_SPI_START, NR_MSM_IRQS);
> + WARN_ON(IS_ERR(domain));
> + }
>
> if (of_machine_is_compatible("qcom,msm8660-surf")) {
> printk(KERN_INFO "Init surf UART registers\n");
This is probably a consequence of MSM not really being "simple", but
just using that. However, NR_MSM_IRQS is only the number of IRQs on
the MSM core. There are also GPIO irqs, and potentially board IRQs
(the board has an I2C-based chip with a bunch of IRQ lines on it).
The only define that captures this now is 'NR_IRQS', even though we're
trying to get rid of that.
Ultimately, the correct answer will be to get the various interrupt
controllers using their own domains, but for now, this needs to be a
larger value to avoid missing a bunch of the interrupts.
David
--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
next prev parent reply other threads:[~2012-01-06 16:07 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-06 14:28 [PATCH] irqdomain: Initialize number of IRQs for simple domains Thierry Reding
[not found] ` <1325860112-22051-1-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
2012-01-06 14:36 ` Nicolas Ferre
2012-01-06 15:04 ` Grant Likely
2012-01-06 16:20 ` Thierry Reding
[not found] ` <20120106162016.GB5593-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2012-01-06 21:34 ` Grant Likely
[not found] ` <20120106213422.GF7457-e0URQFbLeQY2iJbIjFUEsiwD8/FfD2ys@public.gmane.org>
2012-01-07 11:40 ` Thierry Reding
2012-01-06 16:58 ` Cousson, Benoit
2012-01-09 9:03 ` Thierry Reding
2012-01-07 5:58 ` Shawn Guo
[not found] ` <20120107055817.GG4790-rvtDTF3kK1ictlrPMvKcciBecyulp+rMXqFh9Ls21Oc@public.gmane.org>
2012-01-07 11:47 ` Thierry Reding
2012-01-06 16:07 ` David Brown [this message]
[not found] ` <20120106160744.GA7687-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2012-01-06 16:12 ` Thierry Reding
2012-01-06 16:26 ` Rob Herring
[not found] ` <4F0720A9.8070400-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-01-06 18:52 ` David Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120106160744.GA7687@codeaurora.org \
--to=davidb@codeaurora.org \
--cc=baohua.song@csr.com \
--cc=bryanh@codeaurora.org \
--cc=catalin.marinas@arm.com \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=dwalker@fifo99.com \
--cc=grant.likely@secretlab.ca \
--cc=jamie@jamieiles.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=linux@maxim.org.za \
--cc=nicolas.ferre@atmel.com \
--cc=plagnioj@jcrosoft.com \
--cc=rob.herring@calxeda.com \
--cc=tglx@linutronix.de \
--cc=thierry.reding@avionic-design.de \
--cc=tony@atomide.com \
--cc=u.kleine-koenig@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).