[rb532] refresh 2.6.24 patches
[openwrt.git] / target / linux / s3c24xx / patches-2.6.26 / 1120-fix-gta01-pmu-irq-edge-lost-on-resume.patch.patch
1 From a0852d1ca05076a7f5129b57248fc72ea719ff2b Mon Sep 17 00:00:00 2001
2 From: Mike Wester <mwester@dis.net>
3 Date: Fri, 25 Jul 2008 23:06:06 +0100
4 Subject: [PATCH] fix-gta01-pmu-irq-edge-lost-on-resume.patch
5
6 GTA01 -only
7
8 Restore power button functionality after resume operation
9
10 Per Werner's suggestion, run the PMU interrupt handler immediately after resume
11 to clear/handle any pending interrupts from that device. This appears to
12 resolve the dead-powerbutton-after-resume problem. This is not well-tested;
13 need feedback to see if there are any side-effects or other problems.
14
15 From BZ 1313
16
17 Signed-off-by: Mike Wester <mwester@dis.net>
18 ---
19 drivers/i2c/chips/pcf50606.c | 3 +++
20 1 files changed, 3 insertions(+), 0 deletions(-)
21
22 diff --git a/drivers/i2c/chips/pcf50606.c b/drivers/i2c/chips/pcf50606.c
23 index 6f71e6c..aa841e3 100644
24 --- a/drivers/i2c/chips/pcf50606.c
25 +++ b/drivers/i2c/chips/pcf50606.c
26 @@ -1957,6 +1957,9 @@ static int pcf50606_resume(struct device *dev)
27
28 mutex_unlock(&pcf->lock);
29
30 + /* Hack to fix the gta01 power button problem on resume */
31 + pcf50606_irq(0, pcf);
32 +
33 return 0;
34 }
35 #else
36 --
37 1.5.6.3
38
This page took 0.049035 seconds and 5 git commands to generate.