You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.1 KiB
33 lines
1.1 KiB
16 years ago
|
From 691febd6e3dcf7b4e3fde786b1c6de2c1d978eb5 Mon Sep 17 00:00:00 2001
|
||
16 years ago
|
From: Andy Green <andy@openmoko.com>
|
||
16 years ago
|
Date: Sun, 13 Jul 2008 20:30:15 +0100
|
||
16 years ago
|
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
|
||
16 years ago
|
index 64de9bf..a116f9f 100644
|
||
16 years ago
|
--- a/drivers/i2c/chips/pcf50633.c
|
||
|
+++ b/drivers/i2c/chips/pcf50633.c
|
||
16 years ago
|
@@ -2550,6 +2550,8 @@ static int pcf50633_resume(struct device *dev)
|
||
16 years ago
|
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]);
|
||
|
--
|
||
16 years ago
|
1.5.6.5
|
||
16 years ago
|
|