2010-12-02 14:10:40

by Mattias Wallin

[permalink] [raw]
Subject: [PATCH] MFD: ab8500-core wake up from suspend

This patch makes the system wake up from suspend when an
ab8500 interrupt occur. This can for example be USB cable
insert or an RTC alarm.

Signed-off-by: Mattias Wallin <[email protected]>
---
drivers/mfd/ab8500-core.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c
index 2bd4437..e464e94 100644
--- a/drivers/mfd/ab8500-core.c
+++ b/drivers/mfd/ab8500-core.c
@@ -519,7 +519,8 @@ int __devinit ab8500_init(struct ab8500 *ab8500)
return ret;

ret = request_threaded_irq(ab8500->irq, NULL, ab8500_irq,
- IRQF_ONESHOT, "ab8500", ab8500);
+ IRQF_ONESHOT | IRQF_NO_SUSPEND,
+ "ab8500", ab8500);
if (ret)
goto out_removeirq;
}
--
1.7.2.2


2010-12-09 13:50:26

by Samuel Ortiz

[permalink] [raw]
Subject: Re: [PATCH] MFD: ab8500-core wake up from suspend

Hi Mattias,

On Thu, Dec 02, 2010 at 03:10:27PM +0100, Mattias Wallin wrote:
> This patch makes the system wake up from suspend when an
> ab8500 interrupt occur. This can for example be USB cable
> insert or an RTC alarm.
Applied, thanks.

Cheers,
Samuel.

--
Intel Open Source Technology Centre
http://oss.intel.com/