summaryrefslogtreecommitdiffstats
path: root/target/linux/s3c24xx/patches-2.6.24/1132-fix-gta01-pmu-irq-edge-lost-on-resume.patch.patch
diff options
context:
space:
mode:
authormirko <mirko@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-12-12 11:58:53 +0000
committermirko <mirko@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-12-12 11:58:53 +0000
commitfc54b9bf158eea9cae647ce2c58f7d9989af173a (patch)
tree54644c1229434d7ee13c5872bda4129e34337fc0 /target/linux/s3c24xx/patches-2.6.24/1132-fix-gta01-pmu-irq-edge-lost-on-resume.patch.patch
parentd9f49b62b28ebd245587854efa484974d90debbf (diff)
changed Makefile and profiles, added patches for kernel 2.6.24
(stable-branch of Openmoko) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13613 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.24/1132-fix-gta01-pmu-irq-edge-lost-on-resume.patch.patch')
-rw-r--r--target/linux/s3c24xx/patches-2.6.24/1132-fix-gta01-pmu-irq-edge-lost-on-resume.patch.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.24/1132-fix-gta01-pmu-irq-edge-lost-on-resume.patch.patch b/target/linux/s3c24xx/patches-2.6.24/1132-fix-gta01-pmu-irq-edge-lost-on-resume.patch.patch
new file mode 100644
index 000000000..7ce89c067
--- /dev/null
+++ b/target/linux/s3c24xx/patches-2.6.24/1132-fix-gta01-pmu-irq-edge-lost-on-resume.patch.patch
@@ -0,0 +1,38 @@
+From f54af99850ae25da80e491b1864bb90e14c80b1f Mon Sep 17 00:00:00 2001
+From: Mike Wester <mwester@dis.net>
+Date: Sun, 13 Apr 2008 07:25:59 +0100
+Subject: [PATCH] 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>
+---
+ drivers/i2c/chips/pcf50606.c | 3 +++
+ 1 files changed, 3 insertions(+), 0 deletions(-)
+
+diff --git a/drivers/i2c/chips/pcf50606.c b/drivers/i2c/chips/pcf50606.c
+index 6f71e6c..aa841e3 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
+--
+1.5.6.5
+