From: heiko@sntech.de (Heiko Stübner)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 3/9] ARM: S3C24XX: Modify s3c_irq_wake to use the hwirq property
Date: Sun, 27 Jan 2013 21:38:00 +0100 [thread overview]
Message-ID: <201301272138.00842.heiko@sntech.de> (raw)
In-Reply-To: <201301272124.18530.heiko@sntech.de>
This gets rid of the use of static irq mappings there.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
---
arch/arm/mach-s3c24xx/irq-pm.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/arm/mach-s3c24xx/irq-pm.c b/arch/arm/mach-s3c24xx/irq-pm.c
index d48126d..640ec91 100644
--- a/arch/arm/mach-s3c24xx/irq-pm.c
+++ b/arch/arm/mach-s3c24xx/irq-pm.c
@@ -30,18 +30,18 @@
* set bit to 1 in allow bitfield to enable the wakeup settings on it
*/
-unsigned long s3c_irqwake_intallow = 1L << (IRQ_RTC - IRQ_EINT0) | 0xfL;
+unsigned long s3c_irqwake_intallow = 1L << 30 | 0xfL;
unsigned long s3c_irqwake_eintallow = 0x0000fff0L;
int s3c_irq_wake(struct irq_data *data, unsigned int state)
{
- unsigned long irqbit = 1 << (data->irq - IRQ_EINT0);
+ unsigned long irqbit = 1 << data->hwirq;
if (!(s3c_irqwake_intallow & irqbit))
return -ENOENT;
- printk(KERN_INFO "wake %s for irq %d\n",
- state ? "enabled" : "disabled", data->irq);
+ pr_info("wake %s for hwirq %lu\n",
+ state ? "enabled" : "disabled", data->hwirq);
if (!state)
s3c_irqwake_intmask |= irqbit;
--
1.7.10.4
next prev parent reply other threads:[~2013-01-27 20:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-27 20:24 [PATCH v4 0/9] ARM: S3C24XX: rework irq handling for a later dt usage Heiko Stübner
2013-01-27 20:32 ` [PATCH v4 1/9] ARM: S3C24XX: transform irq handling into a declarative form Heiko Stübner
2013-01-27 20:36 ` [PATCH v4 2/9] ARM: S3C24XX: Move irq syscore-ops to irq-pm Heiko Stübner
2013-01-27 20:38 ` Heiko Stübner [this message]
2013-01-27 20:40 ` [PATCH v4 4/9] ARM: S3C24XX: move s3c2416 irq init to common irq code Heiko Stübner
2013-01-27 20:43 ` [PATCH v4 5/9] ARM: S3C24XX: modify s3c2416 irq init to initialize all irqs Heiko Stübner
2013-01-27 20:44 ` [PATCH v4 6/9] ARM: S3C24XX: transform s3c2416 irqs into new structure Heiko Stübner
2013-01-27 20:45 ` [PATCH v4 7/9] ARM: S3C24XX: move s3c2443 irq code to irq.c Heiko Stübner
2013-01-27 20:48 ` [PATCH v4 8/9] ARM: S3C24XX: modify s3c2443 irq init to initialize all irqs Heiko Stübner
2013-01-27 20:49 ` [PATCH v4 9/9] ARM: S3C24XX: transform s3c2443 subirqs into new structure Heiko Stübner
2013-01-29 23:40 ` [PATCH v4 0/9] ARM: S3C24XX: rework irq handling for a later dt usage Kukjin Kim
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=201301272138.00842.heiko@sntech.de \
--to=heiko@sntech.de \
--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).