From: Magnus Damm <magnus.damm@gmail.com>
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 05/06] sh: Let INTC set IRQF_VALID on ARM platforms V2
Date: Fri, 05 Feb 2010 11:15:25 +0000 [thread overview]
Message-ID: <20100205111525.17065.35884.sendpatchset@rxone.opensource.se> (raw)
In-Reply-To: <20100205111440.17065.33296.sendpatchset@rxone.opensource.se>
From: Magnus Damm <damm@opensource.se>
Reuse the SuperH INTC code on ARM by using set_irq_flags()
to set IRQF_VALID on ARM platforms. (V2)
Signed-off-by: Magnus Damm <damm@opensource.se>
---
Changes since V1:
- wrap with CONFIG_ARM instead of CONFIG_ARCH_SHMOBILE
- use set_irq_flags() in create_irq_nr() as well
drivers/sh/intc.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
--- 0001/drivers/sh/intc.c
+++ work/drivers/sh/intc.c 2010-02-05 14:11:53.000000000 +0900
@@ -658,6 +658,10 @@ static void __init intc_register_irq(str
if (desc->ack_regs)
ack_handle[irq] = intc_ack_data(desc, d, enum_id);
+
+#ifdef CONFIG_ARM
+ set_irq_flags(irq, IRQF_VALID); /* Enable IRQ on ARM systems */
+#endif
}
static unsigned int __init save_reg(struct intc_desc_int *d,
@@ -906,8 +910,12 @@ unsigned int create_irq_nr(unsigned int
out_unlock:
spin_unlock_irqrestore(&vector_lock, flags);
- if (irq > 0)
+ if (irq > 0) {
dynamic_irq_init(irq);
+#ifdef CONFIG_ARM
+ set_irq_flags(irq, IRQF_VALID); /* Enable IRQ on ARM systems */
+#endif
+ }
return irq;
}
next prev parent reply other threads:[~2010-02-05 11:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-05 11:14 [PATCH 00/06] ARM: Initial SuperH Mobile ARM support V2 Magnus Damm
2010-02-05 11:14 ` [PATCH 01/06] ARM: SuperH Mobile ARM, sh7367 and G3EVM " Magnus Damm
2010-02-05 22:10 ` [PATCH 01/06] ARM: SuperH Mobile ARM, sh7367 and G3EVM support Russell King - ARM Linux
2010-02-05 11:14 ` [PATCH 02/06] ARM: Add sh7377 and G4EVM support V2 Magnus Damm
2010-02-05 11:15 ` [PATCH 03/06] ARM: Add sh7372 and AP4EVB " Magnus Damm
2010-02-05 11:15 ` [PATCH 04/06] sh: Build drivers/sh for SuperH Mobile ARM Magnus Damm
2010-02-05 11:15 ` Magnus Damm [this message]
2010-02-05 11:15 ` [PATCH 06/06] sh-sci: SuperH Mobile ARM support V2 Magnus Damm
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=20100205111525.17065.35884.sendpatchset@rxone.opensource.se \
--to=magnus.damm@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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).