We need this for dwc2 to work on older ralink SoC like the rt3052. Signed-off-by: John Crispin <blogic@xxxxxxxxxxx> --- drivers/usb/dwc2/hcd.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c index 4d918ed..8b5f966 100644 --- a/drivers/usb/dwc2/hcd.c +++ b/drivers/usb/dwc2/hcd.c @@ -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,11 @@ int dwc2_hcd_init(struct dwc2_hsotg *hsotg, int irq, dev_dbg(hsotg->dev, "DWC OTG HCD INIT\n"); + /* reset the device if a reset controller is present */ + retval = device_reset_optional(hsotg->dev); + if (retval && retval != -ENOSYS) + return retval; + /* Detect config values from hardware */ retval = dwc2_get_hwparams(hsotg); -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html