aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Wester <mwester@dis.net>2008-11-19 17:09:40 +0000
committerAndy Green <agreen@pads.home.warmcat.com>2008-11-19 17:09:40 +0000
commit6d160e78342e7812cbd1727d469f2332d07e91b9 (patch)
treedce8dc6383a71b367a96341289def401cb390f03
parent1817be7f5e300c10b1eb2e899400873f50b5e977 (diff)
fix-gta01-pmu-irq-edge-lost-on-resume.patch
GTA01 -only Restore power button functionality after resume operation Per Werner's suggestion, run the PMU interrupt handler immediately after resume to clear/handle any pending interrupts from that device. This appears to resolve the dead-powerbutton-after-resume problem. This is not well-tested; need feedback to see if there are any side-effects or other problems. From BZ 1313 Signed-off-by: Mike Wester <mwester@dis.net>
-rw-r--r--drivers/i2c/chips/pcf50606.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/i2c/chips/pcf50606.c b/drivers/i2c/chips/pcf50606.c
index 6f71e6ccc19..aa841e3fcfa 100644
--- a/drivers/i2c/chips/pcf50606.c
+++ b/drivers/i2c/chips/pcf50606.c
@@ -1957,6 +1957,9 @@ static int pcf50606_resume(struct device *dev)
mutex_unlock(&pcf->lock);
+ /* Hack to fix the gta01 power button problem on resume */
+ pcf50606_irq(0, pcf);
+
return 0;
}
#else