ralink: add dwc2 device_reset() call
[openwrt/svn-archive/archive.git] / target / linux / ramips / patches-3.14 / 0059-USB-fix-dwc2.patch
1 Index: linux-3.14.16/drivers/usb/dwc2/hcd.c
2 ===================================================================
3 --- linux-3.14.16.orig/drivers/usb/dwc2/hcd.c 2014-08-08 01:50:59.000000000 +0200
4 +++ linux-3.14.16/drivers/usb/dwc2/hcd.c 2014-09-07 21:01:06.524023779 +0200
5 @@ -47,6 +47,7 @@
6 #include <linux/io.h>
7 #include <linux/slab.h>
8 #include <linux/usb.h>
9 +#include <linux/reset.h>
10
11 #include <linux/usb/hcd.h>
12 #include <linux/usb/ch11.h>
13 @@ -2764,6 +2765,8 @@
14
15 dev_dbg(hsotg->dev, "DWC OTG HCD INIT\n");
16
17 + device_reset(hsotg->dev);
18 +
19 /* Detect config values from hardware */
20 retval = dwc2_get_hwparams(hsotg);
21