* [PATCH] lpc32xx: irq - Set the chain handlers after setting up the IRQ domain
@ 2012-11-01 12:23 Alban Bedel
2012-11-02 9:01 ` Roland Stigge
0 siblings, 1 reply; 4+ messages in thread
From: Alban Bedel @ 2012-11-01 12:23 UTC (permalink / raw)
To: linux-arm-kernel
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
---
arch/arm/mach-lpc32xx/irq.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/arch/arm/mach-lpc32xx/irq.c b/arch/arm/mach-lpc32xx/irq.c
index 3c63327..b92dc25 100644
--- a/arch/arm/mach-lpc32xx/irq.c
+++ b/arch/arm/mach-lpc32xx/irq.c
@@ -448,10 +448,6 @@ void __init lpc32xx_init_irq(void)
__raw_writel(0, LPC32XX_INTC_MASK(LPC32XX_SIC1_BASE));
__raw_writel(0, LPC32XX_INTC_MASK(LPC32XX_SIC2_BASE));
- /* MIC SUBIRQx interrupts will route handling to the chain handlers */
- irq_set_chained_handler(IRQ_LPC32XX_SUB1IRQ, lpc32xx_sic1_handler);
- irq_set_chained_handler(IRQ_LPC32XX_SUB2IRQ, lpc32xx_sic2_handler);
-
/* Initially disable all wake events */
__raw_writel(0, LPC32XX_CLKPWR_P01_ER);
__raw_writel(0, LPC32XX_CLKPWR_INT_ER);
@@ -485,6 +481,12 @@ void __init lpc32xx_init_irq(void)
irq_base, 0,
&irq_domain_simple_ops,
NULL);
- if (!lpc32xx_mic_domain)
+ if (!lpc32xx_mic_domain) {
panic("Unable to add MIC irq domain\n");
+ return;
+ }
+
+ /* MIC SUBIRQx interrupts will route handling to the chain handlers */
+ irq_set_chained_handler(IRQ_LPC32XX_SUB1IRQ, lpc32xx_sic1_handler);
+ irq_set_chained_handler(IRQ_LPC32XX_SUB2IRQ, lpc32xx_sic2_handler);
}
--
1.7.0.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] lpc32xx: irq - Set the chain handlers after setting up the IRQ domain
2012-11-01 12:23 [PATCH] lpc32xx: irq - Set the chain handlers after setting up the IRQ domain Alban Bedel
@ 2012-11-02 9:01 ` Roland Stigge
2012-11-05 17:00 ` Alban Bedel
0 siblings, 1 reply; 4+ messages in thread
From: Roland Stigge @ 2012-11-02 9:01 UTC (permalink / raw)
To: linux-arm-kernel
On 11/01/2012 01:23 PM, Alban Bedel wrote:
> Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
> ---
> arch/arm/mach-lpc32xx/irq.c | 12 +++++++-----
> 1 files changed, 7 insertions(+), 5 deletions(-)
>
> diff --git a/arch/arm/mach-lpc32xx/irq.c b/arch/arm/mach-lpc32xx/irq.c
> index 3c63327..b92dc25 100644
> --- a/arch/arm/mach-lpc32xx/irq.c
> +++ b/arch/arm/mach-lpc32xx/irq.c
> @@ -448,10 +448,6 @@ void __init lpc32xx_init_irq(void)
> __raw_writel(0, LPC32XX_INTC_MASK(LPC32XX_SIC1_BASE));
> __raw_writel(0, LPC32XX_INTC_MASK(LPC32XX_SIC2_BASE));
>
> - /* MIC SUBIRQx interrupts will route handling to the chain handlers */
> - irq_set_chained_handler(IRQ_LPC32XX_SUB1IRQ, lpc32xx_sic1_handler);
> - irq_set_chained_handler(IRQ_LPC32XX_SUB2IRQ, lpc32xx_sic2_handler);
> -
> /* Initially disable all wake events */
> __raw_writel(0, LPC32XX_CLKPWR_P01_ER);
> __raw_writel(0, LPC32XX_CLKPWR_INT_ER);
> @@ -485,6 +481,12 @@ void __init lpc32xx_init_irq(void)
> irq_base, 0,
> &irq_domain_simple_ops,
> NULL);
> - if (!lpc32xx_mic_domain)
> + if (!lpc32xx_mic_domain) {
> panic("Unable to add MIC irq domain\n");
> + return;
> + }
> +
> + /* MIC SUBIRQx interrupts will route handling to the chain handlers */
> + irq_set_chained_handler(IRQ_LPC32XX_SUB1IRQ, lpc32xx_sic1_handler);
> + irq_set_chained_handler(IRQ_LPC32XX_SUB2IRQ, lpc32xx_sic2_handler);
> }
Thanks for your patch!
I already posted basically the same change on 2012-10-28 already which
is part of my patch set for LPC32xx to be merged into arm-soc.git (will
do a pull request later). Fixing another irq bug in this platform/irq also.
Please also note that panic() doesn't return, so I won't include the
respective new return that you added.
Thanks,
Roland
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] lpc32xx: irq - Set the chain handlers after setting up the IRQ domain
2012-11-02 9:01 ` Roland Stigge
@ 2012-11-05 17:00 ` Alban Bedel
2012-11-05 17:35 ` Roland Stigge
0 siblings, 1 reply; 4+ messages in thread
From: Alban Bedel @ 2012-11-05 17:00 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, 02 Nov 2012 10:01:49 +0100
Roland Stigge <stigge@antcom.de> wrote:
> Thanks for your patch!
>
> I already posted basically the same change on 2012-10-28 already which
> is part of my patch set for LPC32xx to be merged into arm-soc.git (will
> do a pull request later). Fixing another irq bug in this platform/irq also.
I checked arm-soc.git, linux-next.git, linux-arm-kernel@ and
linux-kernel@, is there any other place I should check before
submitting LPC32xx patches?
> Please also note that panic() doesn't return, so I won't include the
> respective new return that you added.
OK
Alban
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] lpc32xx: irq - Set the chain handlers after setting up the IRQ domain
2012-11-05 17:00 ` Alban Bedel
@ 2012-11-05 17:35 ` Roland Stigge
0 siblings, 0 replies; 4+ messages in thread
From: Roland Stigge @ 2012-11-05 17:35 UTC (permalink / raw)
To: linux-arm-kernel
Hi!
On 05/11/12 18:00, Alban Bedel wrote:
>> I already posted basically the same change on 2012-10-28 already which
>> is part of my patch set for LPC32xx to be merged into arm-soc.git (will
>> do a pull request later). Fixing another irq bug in this platform/irq also.
>
> I checked arm-soc.git, linux-next.git, linux-arm-kernel@ and
> linux-kernel@, is there any other place I should check before
> submitting LPC32xx patches?
I usually prepare lpc32xx branches for merging into arm-soc.git at
git.antcom.de. Expect the posted patches there and a pull request during
the next days.
Thanks,
Roland
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-11-05 17:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-01 12:23 [PATCH] lpc32xx: irq - Set the chain handlers after setting up the IRQ domain Alban Bedel
2012-11-02 9:01 ` Roland Stigge
2012-11-05 17:00 ` Alban Bedel
2012-11-05 17:35 ` Roland Stigge
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).