Revert "HACK: usb: gadget: Fix enumeration on boot"
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 8 Oct 2013 11:03:25 +0000 (13:03 +0200)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:44:54 +0000 (11:44 +0900)
This reverts commit b0c2c319763e2ace63ace30cd5b9e3e0eb0b9b48.

drivers/usb/gadget/udc-core.c

index 790e1ca..817a26c 100644 (file)
@@ -335,16 +335,7 @@ static int udc_bind_to_driver(struct usb_udc *udc, struct usb_gadget_driver *dri
                driver->unbind(udc->gadget);
                goto err1;
        }
-       /*
-                * HACK: The Android gadget driver disconnects the gadget
-                * on bind and expects the gadget to stay disconnected until
-                * it calls usb_gadget_connect when userspace is ready. Remove
-                * the call to usb_gadget_connect bellow to avoid enabling the
-                * pullup before userspace is ready.
-                */
-#if !defined(CONFIG_USB_G_ANDROID) && !defined(CONFIG_USB_G_SLP)
-                usb_gadget_connect(udc->gadget);
-#endif
+       usb_gadget_connect(udc->gadget);
 
        kobject_uevent(&udc->dev.kobj, KOBJ_CHANGE);
        return 0;