summaryrefslogtreecommitdiffstats
path: root/target/linux/s3c24xx/patches-2.6.24/1227-fix-pcf50633-mask-second-on-resume.patch.patch
diff options
context:
space:
mode:
authorMirko Vogt <mirko@openwrt.org>2008-12-12 11:58:53 +0000
committerMirko Vogt <mirko@openwrt.org>2008-12-12 11:58:53 +0000
commit614683faf8029100802db06a825648d0b6490285 (patch)
tree7401b135dc7ce24ff0175e67e0f2ce7f96296ff0 /target/linux/s3c24xx/patches-2.6.24/1227-fix-pcf50633-mask-second-on-resume.patch.patch
parent4a018d2445c5f249179ff82c8fffb0e3b717f738 (diff)
downloadmaster-31e0f0ae-614683faf8029100802db06a825648d0b6490285.tar.gz
master-31e0f0ae-614683faf8029100802db06a825648d0b6490285.tar.bz2
master-31e0f0ae-614683faf8029100802db06a825648d0b6490285.zip
changed Makefile and profiles, added patches for kernel 2.6.24 (stable-branch of Openmoko)
SVN-Revision: 13613
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.24/1227-fix-pcf50633-mask-second-on-resume.patch.patch')
-rw-r--r--target/linux/s3c24xx/patches-2.6.24/1227-fix-pcf50633-mask-second-on-resume.patch.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.24/1227-fix-pcf50633-mask-second-on-resume.patch.patch b/target/linux/s3c24xx/patches-2.6.24/1227-fix-pcf50633-mask-second-on-resume.patch.patch
new file mode 100644
index 0000000000..c14b58d4b0
--- /dev/null
+++ b/target/linux/s3c24xx/patches-2.6.24/1227-fix-pcf50633-mask-second-on-resume.patch.patch
@@ -0,0 +1,32 @@
+From 691febd6e3dcf7b4e3fde786b1c6de2c1d978eb5 Mon Sep 17 00:00:00 2001
+From: Andy Green <andy@openmoko.com>
+Date: Sun, 13 Jul 2008 20:30:15 +0100
+Subject: [PATCH] fix-pcf50633-mask-second-on-resume.patch
+
+We leave SECOND unmasked on resume, it's like the
+situation at probe() time, but there it makes us
+turn SECOND off after coldplug action. So we need
+to act like after that has happened, not exactly
+like what we do at probe / init time.
+
+Signed-off-by: Andy Green <andy@openmoko.com>
+---
+ drivers/i2c/chips/pcf50633.c | 2 ++
+ 1 files changed, 2 insertions(+), 0 deletions(-)
+
+diff --git a/drivers/i2c/chips/pcf50633.c b/drivers/i2c/chips/pcf50633.c
+index 64de9bf..a116f9f 100644
+--- a/drivers/i2c/chips/pcf50633.c
++++ b/drivers/i2c/chips/pcf50633.c
+@@ -2550,6 +2550,8 @@ static int pcf50633_resume(struct device *dev)
+ dev_err(dev, "Failed to restore LDOs :-( %d\n", ret);
+
+ memset(res, 0, sizeof(res));
++ /* not interested in second on resume */
++ res[0] = PCF50633_INT1_SECOND;
+ ret = i2c_smbus_write_i2c_block_data(&pcf->client,
+ PCF50633_REG_INT1M,
+ 5, &res[0]);
+--
+1.5.6.5
+