Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e63688d0 authored by Manu Gautam's avatar Manu Gautam Committed by Stephen Boyd
Browse files

usb: gadget: Do not pullup D+ by default on bootup



UDC core is starting device controllers as soon as gadget driver
is registered with the UDC, resulting in controller pulling up D+.
This can cause problems with drivers which registers with UDC during
initialization but are ready for enumeration only after user enables
it later. One example of such a driver is android.c

Change-Id: I8985839bd2659f3e3962fe85bd261cd63f43a991
Signed-off-by: default avatarManu Gautam <mgautam@codeaurora.org>
parent 60ba24a3
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -335,7 +335,6 @@ static int udc_bind_to_driver(struct usb_udc *udc, struct usb_gadget_driver *dri
		driver->unbind(udc->gadget);
		goto err1;
	}
	usb_gadget_connect(udc->gadget);

	kobject_uevent(&udc->dev.kobj, KOBJ_CHANGE);
	return 0;