From: dmitry_eremin@mentor.com (Dmitry Eremin-Solenikov)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/4] ARM: sa1100: add irq handler to prepare MULTI_IRQ_HANDLER
Date: Fri, 1 Nov 2013 14:52:08 +0400 [thread overview]
Message-ID: <1383303131-29550-1-git-send-email-dmitry_eremin@mentor.com> (raw)
Add sa1100_handle_irq implementating handle_irq for sa1100 platform.
Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
---
arch/arm/mach-sa1100/generic.h | 1 +
arch/arm/mach-sa1100/irq.c | 17 +++++++++++++++++
2 files changed, 18 insertions(+)
diff --git a/arch/arm/mach-sa1100/generic.h b/arch/arm/mach-sa1100/generic.h
index 0d92e11..a918ea5 100644
--- a/arch/arm/mach-sa1100/generic.h
+++ b/arch/arm/mach-sa1100/generic.h
@@ -12,6 +12,7 @@ extern void __init sa1100_init_irq(void);
extern void __init sa1100_init_gpio(void);
extern void sa11x0_restart(enum reboot_mode, const char *);
extern void sa11x0_init_late(void);
+extern void sa1100_handle_irq(struct pt_regs *);
#define SET_BANK(__nr,__start,__size) \
mi->bank[__nr].start = (__start), \
diff --git a/arch/arm/mach-sa1100/irq.c b/arch/arm/mach-sa1100/irq.c
index 2124f1fc..2ec1f92 100644
--- a/arch/arm/mach-sa1100/irq.c
+++ b/arch/arm/mach-sa1100/irq.c
@@ -20,6 +20,7 @@
#include <mach/hardware.h>
#include <mach/irqs.h>
#include <asm/mach/irq.h>
+#include <asm/exception.h>
#include "generic.h"
@@ -340,3 +341,19 @@ void __init sa1100_init_irq(void)
sa1100_init_gpio();
}
+
+asmlinkage void __exception_irq_entry sa1100_handle_irq(struct pt_regs *regs)
+{
+ uint32_t icip, icmr, mask;
+
+ do {
+ icip = (ICIP);
+ icmr = (ICMR);
+ mask = icip & icmr;
+
+ if (mask == 0)
+ break;
+
+ handle_IRQ(fls(mask) - 1, regs);
+ } while (1);
+}
--
1.8.4.rc3
next reply other threads:[~2013-11-01 10:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-01 10:52 Dmitry Eremin-Solenikov [this message]
2013-11-01 10:52 ` [PATCH 2/4] ARM: sa1100: enable MULTI_IRQ_HANDLER for all boards Dmitry Eremin-Solenikov
2013-11-01 10:52 ` [PATCH 3/4] ARM: sa1100: drop entry-macro.S Dmitry Eremin-Solenikov
2013-11-01 10:52 ` [PATCH 4/4] ARM: sa1100: switch to COMMON_CLK framework Dmitry Eremin-Solenikov
2013-11-01 10:59 ` Russell King - ARM Linux
2013-11-01 11:21 ` Dmitry Eremin-Solenikov
2013-11-01 19:54 ` Dmitry Eremin-Solenikov
2013-11-12 13:44 ` [PATCH 1/4] ARM: sa1100: add irq handler to prepare MULTI_IRQ_HANDLER Linus Walleij
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=1383303131-29550-1-git-send-email-dmitry_eremin@mentor.com \
--to=dmitry_eremin@mentor.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