aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-07-15 21:05:36 +0000
committerJohn Crispin <blogic@openwrt.org>2013-07-15 21:05:36 +0000
commitd763a4ca0c2aa49feec31a982a5d85a44a4aa8c0 (patch)
tree2b9ca5f3c293b771db929a1ef72e30b3e9a541fc
parentc40e3c0d0ee70d6236f3b4b5367234e6b634d918 (diff)
downloadmaster-187ad058-d763a4ca0c2aa49feec31a982a5d85a44a4aa8c0.tar.gz
master-187ad058-d763a4ca0c2aa49feec31a982a5d85a44a4aa8c0.tar.bz2
master-187ad058-d763a4ca0c2aa49feec31a982a5d85a44a4aa8c0.zip
ramips: add a explicit reset to dwc2
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37352 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/ramips/patches-3.10/0035-USB-dwc2.patch14
1 files changed, 11 insertions, 3 deletions
diff --git a/target/linux/ramips/patches-3.10/0035-USB-dwc2.patch b/target/linux/ramips/patches-3.10/0035-USB-dwc2.patch
index bd84c46085..0b494d5fc0 100644
--- a/target/linux/ramips/patches-3.10/0035-USB-dwc2.patch
+++ b/target/linux/ramips/patches-3.10/0035-USB-dwc2.patch
@@ -1,12 +1,20 @@
Index: linux-3.10.1/drivers/staging/dwc2/hcd.c
===================================================================
--- linux-3.10.1.orig/drivers/staging/dwc2/hcd.c 2013-07-13 20:42:41.000000000 +0200
-+++ linux-3.10.1/drivers/staging/dwc2/hcd.c 2013-07-15 13:25:34.220821275 +0200
-@@ -2712,6 +2712,8 @@
++++ linux-3.10.1/drivers/staging/dwc2/hcd.c 2013-07-15 18:23:20.193246998 +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>
+@@ -2712,6 +2713,8 @@
dev_dbg(hsotg->dev, "DWC OTG HCD INIT\n");
-+ writel(0, hsotg->regs + 0xe00);
++ device_reset(hsotg->dev);
+
/*
* Attempt to ensure this device is really a DWC_otg Controller.