From 5430bdb92ec379dd0cd4d52d80180efc0b79e92b Mon Sep 17 00:00:00 2001 From: Andy Green Date: Thu, 4 Dec 2008 20:47:54 +0000 Subject: fix-s3c-eint-offset-calc-error.patch 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. cc: Ben Dooks Signed-off-by: Andy Green --- arch/arm/plat-s3c24xx/irq-pm.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'arch/arm/plat-s3c24xx') diff --git a/arch/arm/plat-s3c24xx/irq-pm.c b/arch/arm/plat-s3c24xx/irq-pm.c index b7acf1a8ecd..87bda522c1a 100644 --- a/arch/arm/plat-s3c24xx/irq-pm.c +++ b/arch/arm/plat-s3c24xx/irq-pm.c @@ -34,6 +34,9 @@ int s3c_irq_wake(unsigned int irqno, unsigned int state) { unsigned long irqbit = 1 << (irqno - IRQ_EINT0); + if (irqno >= IRQ_EINT4) + return s3c_irqext_wake(irqno, state); + if (!(s3c_irqwake_intallow & irqbit)) return -ENOENT; -- cgit v1.2.3