summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0119-i2c-eg20t-modified-the-setting-of-transfer-rate.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0119-i2c-eg20t-modified-the-setting-of-transfer-rate.patch')
-rw-r--r--recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0119-i2c-eg20t-modified-the-setting-of-transfer-rate.patch33
1 files changed, 0 insertions, 33 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0119-i2c-eg20t-modified-the-setting-of-transfer-rate.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0119-i2c-eg20t-modified-the-setting-of-transfer-rate.patch
deleted file mode 100644
index 15391676..00000000
--- a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0119-i2c-eg20t-modified-the-setting-of-transfer-rate.patch
+++ /dev/null
@@ -1,33 +0,0 @@
1From d73358012ed5ac74a1f51fa250d221be5e3ca304 Mon Sep 17 00:00:00 2001
2From: Toshiharu Okada <toshiharu-linux@dsn.okisemi.com>
3Date: Mon, 26 Sep 2011 16:16:23 +0900
4Subject: [PATCH 119/129] i2c-eg20t: modified the setting of transfer rate.
5
6commit ff35e8b18984ad2a82cbd259fc07f0be4b34b1aa upstream.
7
8This patch modified the setting value of
9I2C Bus Transfer Rate Setting Counter regisrer.
10
11Signed-off-by: Toshiharu Okada <toshiharu-linux@dsn.okisemi.com>
12Signed-off-by: Ben Dooks <ben-linux@fluff.org>
13Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14---
15 drivers/i2c/busses/i2c-eg20t.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/drivers/i2c/busses/i2c-eg20t.c b/drivers/i2c/busses/i2c-eg20t.c
19index 18936ac..730215e 100644
20--- a/drivers/i2c/busses/i2c-eg20t.c
21+++ b/drivers/i2c/busses/i2c-eg20t.c
22@@ -243,7 +243,7 @@ static void pch_i2c_init(struct i2c_algo_pch_data *adap)
23 if (pch_clk > PCH_MAX_CLK)
24 pch_clk = 62500;
25
26- pch_i2cbc = (pch_clk + (pch_i2c_speed * 4)) / pch_i2c_speed * 8;
27+ pch_i2cbc = (pch_clk + (pch_i2c_speed * 4)) / (pch_i2c_speed * 8);
28 /* Set transfer speed in I2CBC */
29 iowrite32(pch_i2cbc, p + PCH_I2CBC);
30
31--
321.7.9.5
33