0059-USB-fix-dwc2.patch 457 B

12345678910111213141516171819
  1. --- a/drivers/usb/dwc2/hcd.c
  2. +++ b/drivers/usb/dwc2/hcd.c
  3. @@ -47,6 +47,7 @@
  4. #include <linux/io.h>
  5. #include <linux/slab.h>
  6. #include <linux/usb.h>
  7. +#include <linux/reset.h>
  8. #include <linux/usb/hcd.h>
  9. #include <linux/usb/ch11.h>
  10. @@ -2780,6 +2781,8 @@ int dwc2_hcd_init(struct dwc2_hsotg *hso
  11. dev_dbg(hsotg->dev, "DWC OTG HCD INIT\n");
  12. + device_reset(hsotg->dev);
  13. +
  14. /* Detect config values from hardware */
  15. retval = dwc2_get_hwparams(hsotg);