diff options
Diffstat (limited to 'meta/recipes-kernel/linux/linux-netbook-2.6.33.2/linux-2.6.33-i2c-workaround-for-aava-koski-touchscreen.patch')
-rw-r--r-- | meta/recipes-kernel/linux/linux-netbook-2.6.33.2/linux-2.6.33-i2c-workaround-for-aava-koski-touchscreen.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-netbook-2.6.33.2/linux-2.6.33-i2c-workaround-for-aava-koski-touchscreen.patch b/meta/recipes-kernel/linux/linux-netbook-2.6.33.2/linux-2.6.33-i2c-workaround-for-aava-koski-touchscreen.patch new file mode 100644 index 0000000000..fd267df47b --- /dev/null +++ b/meta/recipes-kernel/linux/linux-netbook-2.6.33.2/linux-2.6.33-i2c-workaround-for-aava-koski-touchscreen.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From b766d59f044858ed3d149e97619a0bf5cc2873f3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Priya Vijayan <priya.vijayan@intel.com> | ||
3 | Date: Tue, 27 Apr 2010 13:23:28 -0700 | ||
4 | Subject: [PATCH] workaround for aava KOSKI | ||
5 | |||
6 | Signed-off-by: Priya Vijayan <priya.vijayan@intel.com> | ||
7 | --- | ||
8 | drivers/i2c/busses/i2c-mrst.c | 3 +++ | ||
9 | 1 files changed, 3 insertions(+), 0 deletions(-) | ||
10 | |||
11 | diff --git a/drivers/i2c/busses/i2c-mrst.c b/drivers/i2c/busses/i2c-mrst.c | ||
12 | index e591a90..0737f42 100644 | ||
13 | --- a/drivers/i2c/busses/i2c-mrst.c | ||
14 | +++ b/drivers/i2c/busses/i2c-mrst.c | ||
15 | @@ -217,6 +217,7 @@ static int mrst_i2c_disable(struct i2c_adapter *adap) | ||
16 | dev_dbg(&adap->dev, "i2c is busy, count is %d\n", count); | ||
17 | if (count++ > 10000) | ||
18 | return -EBUSY; | ||
19 | + udelay(10); | ||
20 | } | ||
21 | |||
22 | /* Set IC_ENABLE to 0 */ | ||
23 | @@ -468,6 +469,7 @@ static int xfer_read(struct i2c_adapter *adap, unsigned char *buf, int length) | ||
24 | reg_val = mrst_i2c_read(i2c->base + IC_STATUS); | ||
25 | if (count++ > MAX_T_POLL_COUNT) | ||
26 | goto read_loop; | ||
27 | + udelay(10); | ||
28 | } | ||
29 | |||
30 | reg_val = mrst_i2c_read(i2c->base + IC_DATA_CMD); | ||
31 | @@ -522,6 +524,7 @@ static int xfer_write(struct i2c_adapter *adap, | ||
32 | while ((reg_val & bit_get) == 0) { | ||
33 | if (count++ > MAX_T_POLL_COUNT) | ||
34 | goto write_loop; | ||
35 | + udelay(10); | ||
36 | reg_val = mrst_i2c_read(i2c->base + IC_STATUS); | ||
37 | } | ||
38 | |||
39 | -- | ||
40 | 1.6.2.2 | ||
41 | |||