[ifxmips] many more code cleanups for checkpatch.pl, most flagged as errors
[openwrt.git] / target / linux / s3c24xx / patches-2.6.24 / 1150-Explain-why-we-want-SECOND-to-kick.patch
1 From 88d3c5010a207c651d1940856d0d26935434e3c2 Mon Sep 17 00:00:00 2001
2 From: Holger Freyther <ich@tamarin.(none)>
3 Date: Tue, 13 May 2008 18:53:40 +0100
4 Subject: [PATCH] Explain why we want SECOND to kick.
5 We do not mask the SECOND interrupt to make sure that we get
6 a interrupt at the beginning. We use this for the coldplug_done
7 initisalisation.
8 So pcf->flags and INT1M is out of sync at the beginning but after the
9 first SECOND interrupt it will be put into sync.
10
11 Signed-Off-By: Holger Freyther <zecke@openmoko.org>
12 ---
13 drivers/i2c/chips/pcf50633.c | 3 ++-
14 1 files changed, 2 insertions(+), 1 deletions(-)
15
16 diff --git a/drivers/i2c/chips/pcf50633.c b/drivers/i2c/chips/pcf50633.c
17 index 205f4e3..1c10c42 100644
18 --- a/drivers/i2c/chips/pcf50633.c
19 +++ b/drivers/i2c/chips/pcf50633.c
20 @@ -1755,7 +1755,8 @@ static int pcf50633_detect(struct i2c_adapter *adapter, int address, int kind)
21 goto exit_sysfs;
22
23 /* configure interrupt mask */
24 - reg_write(data, PCF50633_REG_INT1M, 0x00); /* we want SECOND to kick */
25 + /* we want SECOND to kick for the coldplug initialisation */
26 + reg_write(data, PCF50633_REG_INT1M, 0x00);
27 reg_write(data, PCF50633_REG_INT2M, 0x00);
28 reg_write(data, PCF50633_REG_INT3M, 0x00);
29 reg_write(data, PCF50633_REG_INT4M, 0x00);
30 --
31 1.5.6.5
32
This page took 0.042978 seconds and 5 git commands to generate.