[ar71xx] preliminary support for the Ubiquiti RouterStation Pro
[openwrt.git] / target / linux / s3c24xx / patches-2.6.24 / 1227-fix-pcf50633-mask-second-on-resume.patch.patch
1 From 691febd6e3dcf7b4e3fde786b1c6de2c1d978eb5 Mon Sep 17 00:00:00 2001
2 From: Andy Green <andy@openmoko.com>
3 Date: Sun, 13 Jul 2008 20:30:15 +0100
4 Subject: [PATCH] fix-pcf50633-mask-second-on-resume.patch
5
6 We leave SECOND unmasked on resume, it's like the
7 situation at probe() time, but there it makes us
8 turn SECOND off after coldplug action. So we need
9 to act like after that has happened, not exactly
10 like what we do at probe / init time.
11
12 Signed-off-by: Andy Green <andy@openmoko.com>
13 ---
14 drivers/i2c/chips/pcf50633.c | 2 ++
15 1 files changed, 2 insertions(+), 0 deletions(-)
16
17 diff --git a/drivers/i2c/chips/pcf50633.c b/drivers/i2c/chips/pcf50633.c
18 index 64de9bf..a116f9f 100644
19 --- a/drivers/i2c/chips/pcf50633.c
20 +++ b/drivers/i2c/chips/pcf50633.c
21 @@ -2550,6 +2550,8 @@ static int pcf50633_resume(struct device *dev)
22 dev_err(dev, "Failed to restore LDOs :-( %d\n", ret);
23
24 memset(res, 0, sizeof(res));
25 + /* not interested in second on resume */
26 + res[0] = PCF50633_INT1_SECOND;
27 ret = i2c_smbus_write_i2c_block_data(&pcf->client,
28 PCF50633_REG_INT1M,
29 5, &res[0]);
30 --
31 1.5.6.5
32
This page took 0.043491 seconds and 5 git commands to generate.