Author: blogic
Date: 2014-09-08 19:32:52 +0200 (Mon, 08 Sep 2014)
New Revision: 42445

Added:
   trunk/target/linux/ramips/patches-3.14/0059-USB-fix-dwc2.patch
Log:
ralink: add dwc2 device_reset() call

Signed-off-by: John Crispin <[email protected]>

Added: trunk/target/linux/ramips/patches-3.14/0059-USB-fix-dwc2.patch
===================================================================
--- trunk/target/linux/ramips/patches-3.14/0059-USB-fix-dwc2.patch              
                (rev 0)
+++ trunk/target/linux/ramips/patches-3.14/0059-USB-fix-dwc2.patch      
2014-09-08 17:32:52 UTC (rev 42445)
@@ -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);
+ 
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to