kernel: bump 4.4 to 4.4.91
[openwrt/openwrt.git] / target / linux / ar71xx / patches-4.4 / 930-chipidea-pullup.patch
index 23b8e86aac086150cfb4af6c23e8c035bb2c7592..d43e8c7dc528b7f22279bc95a5b8315cc2ae576e 100644 (file)
@@ -58,7 +58,7 @@
                return;
 +      }
  
-       if (hw_read_otgsc(ci, OTGSC_BSV))
+       if (hw_read_otgsc(ci, OTGSC_BSV) && !ci->vbus_active)
                usb_gadget_vbus_connect(&ci->gadget);
 --- a/include/linux/usb/chipidea.h
 +++ b/include/linux/usb/chipidea.h