[ARM] S3C24XX: Fix bug in IRQ_EINT_BIT() calculation
authorAndy Green <andy@openmoko.com>
Fri, 12 Dec 2008 00:24:13 +0000 (00:24 +0000)
committerBen Dooks <ben-linux@fluff.org>
Sun, 8 Mar 2009 12:35:42 +0000 (12:35 +0000)
There's a bug in calculation of IRQ_EINT_BIT introduced on the test
branch for pm changes for s3c by Ben Dooks fixed in this patch.

There's also a bit of a mystery about how wake gets to wake EINT
set of interrupts, I added a couple of lines that make it work for
EINT4+ but not sure what's meant to be there for EINT0-3.

Still, this gets GTA02 resume working again.

Signed-off-by: Andy Green <andy@openmoko.com>
[ben-linux@fluff.org: remove irq-pm.c change]
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/mach-s3c2410/include/mach/irqs.h

index 0cd89b735771464546659d76d7584205b6108097..2a2384ffa7b1ddf224f623d1cda91b02d4d6ca8a 100644 (file)
@@ -80,7 +80,7 @@
 #define IRQ_EINT22     S3C2410_IRQ(50)
 #define IRQ_EINT23     S3C2410_IRQ(51)
 
-#define IRQ_EINT_BIT(x)        ((x) - (IRQ_EINT4 + 4))
+#define IRQ_EINT_BIT(x)        ((x) - IRQ_EINT4 + 4)
 #define IRQ_EINT(x)    (((x) >= 4) ? (IRQ_EINT4 + (x) - 4) : (IRQ_EINT0 + (x)))
 
 #define IRQ_LCD_FIFO   S3C2410_IRQ(52)
This page took 0.031447 seconds and 5 git commands to generate.