aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/s3c24xx/patches-2.6.24/1321-fix-s3c2410-usb-controller-mode-change-always-EINVAL.patch
diff options
context:
space:
mode:
authorMirko Vogt <mirko@openwrt.org>2008-12-12 11:58:53 +0000
committerMirko Vogt <mirko@openwrt.org>2008-12-12 11:58:53 +0000
commitfac7f7f84f3771c5247c7fdee825c092077984f5 (patch)
tree54644c1229434d7ee13c5872bda4129e34337fc0 /target/linux/s3c24xx/patches-2.6.24/1321-fix-s3c2410-usb-controller-mode-change-always-EINVAL.patch
parenta34279723a9cf0796f9261f2fb90bea18cd95711 (diff)
downloadmaster-187ad058-fac7f7f84f3771c5247c7fdee825c092077984f5.tar.gz
master-187ad058-fac7f7f84f3771c5247c7fdee825c092077984f5.tar.bz2
master-187ad058-fac7f7f84f3771c5247c7fdee825c092077984f5.zip
changed Makefile and profiles, added patches for kernel 2.6.24
(stable-branch of Openmoko) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13613 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.24/1321-fix-s3c2410-usb-controller-mode-change-always-EINVAL.patch')
-rw-r--r--target/linux/s3c24xx/patches-2.6.24/1321-fix-s3c2410-usb-controller-mode-change-always-EINVAL.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.24/1321-fix-s3c2410-usb-controller-mode-change-always-EINVAL.patch b/target/linux/s3c24xx/patches-2.6.24/1321-fix-s3c2410-usb-controller-mode-change-always-EINVAL.patch
new file mode 100644
index 0000000000..0fe12da029
--- /dev/null
+++ b/target/linux/s3c24xx/patches-2.6.24/1321-fix-s3c2410-usb-controller-mode-change-always-EINVAL.patch
@@ -0,0 +1,33 @@
+From a5dcecfb817b256b0e36f3c48605f79e35dd3e57 Mon Sep 17 00:00:00 2001
+From: Andy Green <andy@openmoko.com>
+Date: Thu, 13 Nov 2008 20:28:59 +0000
+Subject: [PATCH] fix-s3c2410-usb-controller-mode-change-always-EINVAL.patch
+
+We always return -EINVAL when changing s3c2410 USB host and device modes
+due to lack of { }.
+
+Signed-off-by: Andy Green <andy@openmoko.com>
+---
+ drivers/usb/host/ohci-s3c2410.c | 4 +++-
+ 1 files changed, 3 insertions(+), 1 deletions(-)
+
+diff --git a/drivers/usb/host/ohci-s3c2410.c b/drivers/usb/host/ohci-s3c2410.c
+index 68f5689..1c41202 100644
+--- a/drivers/usb/host/ohci-s3c2410.c
++++ b/drivers/usb/host/ohci-s3c2410.c
+@@ -335,9 +335,11 @@ static ssize_t set_usb_mode(struct device *dev, struct device_attribute *attr,
+ printk("s3c2410: changing usb to device\n");
+ s3c2410_modify_misccr(S3C2410_MISCCR_USBHOST, 0);
+ s3c2410_gpio_setpin(S3C2410_GPB9, 1);
+- } else
++ } else {
+ printk("s3c2410: unknown mode\n");
+ return -EINVAL;
++ }
++
+ return count;
+ }
+
+--
+1.5.6.5
+