summaryrefslogtreecommitdiff
path: root/target/linux/s3c24xx/patches/0016-i2c-permit_invalid_addrs.patch.patch
diff options
context:
space:
mode:
authormirko <mirko@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-12-12 00:02:36 +0000
committermirko <mirko@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-12-12 00:02:36 +0000
commitcc3146824acbf585f487a803b4a2eadf36b9b47d (patch)
treeefab142ef89b35ce42e8a79e028eff15be362af8 /target/linux/s3c24xx/patches/0016-i2c-permit_invalid_addrs.patch.patch
parent22b3854919b7cb44d725eb7a7efd018ad9aec25c (diff)
add support for target 3c24xx (more known as Openmoko GTA02 "Freerunner") and merge it with the openmoko-target and the work Michael Buesch <mb> did
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13609 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/s3c24xx/patches/0016-i2c-permit_invalid_addrs.patch.patch')
-rwxr-xr-xtarget/linux/s3c24xx/patches/0016-i2c-permit_invalid_addrs.patch.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches/0016-i2c-permit_invalid_addrs.patch.patch b/target/linux/s3c24xx/patches/0016-i2c-permit_invalid_addrs.patch.patch
new file mode 100755
index 0000000000..fda0473a12
--- /dev/null
+++ b/target/linux/s3c24xx/patches/0016-i2c-permit_invalid_addrs.patch.patch
@@ -0,0 +1,33 @@
+From 839b25d6bcef4b1609aaa53d018cdbc59ea4efa7 Mon Sep 17 00:00:00 2001
+From: mokopatches <mokopatches@openmoko.org>
+Date: Wed, 16 Jul 2008 14:44:50 +0100
+Subject: [PATCH] i2c-permit_invalid_addrs.patch
+ We need this stupid workaround since our amplifier chip uses a 'reserved' I2C
+ address
+
+Signed-off-by: Harald Welte <laforge@openmoko.org>
+---
+ drivers/i2c/i2c-core.c | 4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c
+index d0175f4..bb0c5e5 100644
+--- a/drivers/i2c/i2c-core.c
++++ b/drivers/i2c/i2c-core.c
+@@ -1026,11 +1026,11 @@ static int i2c_probe_address(struct i2c_adapter *adapter, int addr, int kind,
+ int err;
+
+ /* Make sure the address is valid */
+- if (addr < 0x03 || addr > 0x77) {
++ /*if (addr < 0x03 || addr > 0x77) {
+ dev_warn(&adapter->dev, "Invalid probe address 0x%02x\n",
+ addr);
+ return -EINVAL;
+- }
++ }*/
+
+ /* Skip if already in use */
+ if (i2c_check_addr(adapter, addr))
+--
+1.5.6.3
+