aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-09-08 17:32:52 +0000
committerJohn Crispin <blogic@openwrt.org>2014-09-08 17:32:52 +0000
commit3bafd52ff562bd6d1a324c13b6f82246160ef246 (patch)
tree877bff09bd6bd03ca047610e8df6d037b280ecdf /target
parentfdfb81fd0dce5b1e765be9e8de99949ce9452065 (diff)
downloadmaster-187ad058-3bafd52ff562bd6d1a324c13b6f82246160ef246.tar.gz
master-187ad058-3bafd52ff562bd6d1a324c13b6f82246160ef246.tar.bz2
master-187ad058-3bafd52ff562bd6d1a324c13b6f82246160ef246.zip
ralink: add dwc2 device_reset() call
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42445 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/ramips/patches-3.14/0059-USB-fix-dwc2.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/target/linux/ramips/patches-3.14/0059-USB-fix-dwc2.patch b/target/linux/ramips/patches-3.14/0059-USB-fix-dwc2.patch
new file mode 100644
index 0000000000..745ed7690d
--- /dev/null
+++ b/target/linux/ramips/patches-3.14/0059-USB-fix-dwc2.patch
@@ -0,0 +1,21 @@
+Index: linux-3.14.16/drivers/usb/dwc2/hcd.c
+===================================================================
+--- linux-3.14.16.orig/drivers/usb/dwc2/hcd.c 2014-08-08 01:50:59.000000000 +0200
++++ linux-3.14.16/drivers/usb/dwc2/hcd.c 2014-09-07 21:01:06.524023779 +0200
+@@ -47,6 +47,7 @@
+ #include <linux/io.h>
+ #include <linux/slab.h>
+ #include <linux/usb.h>
++#include <linux/reset.h>
+
+ #include <linux/usb/hcd.h>
+ #include <linux/usb/ch11.h>
+@@ -2764,6 +2765,8 @@
+
+ dev_dbg(hsotg->dev, "DWC OTG HCD INIT\n");
+
++ device_reset(hsotg->dev);
++
+ /* Detect config values from hardware */
+ retval = dwc2_get_hwparams(hsotg);
+