5AI.1.9 RC1 Final Release
usb: gadget: android: Dont allow pullup to happen

Android gadget requires the pullup to be low untill
userland comes up, configures the usb functions and
then enables the pullup.

By default, the udc-core layer enables the pullup
during gadget_probe_driver, this causes break in
the cold boot enumeration on the Host for android.

This patch keeps the pullup low, using the
allow_pullup gadget-ops, untill userspace is up.

This patch indirectly also fixes the kernel crash
obsreved in cold-boot scenario, due to the
usb_gadget_disconnect() call in android_bind()

Change-Id: Id1168994096e588115999ef7a74c9822726e5b9c
Signed-off-by: Moiz Sonasath <m-sonasath@ti.com>
1 file changed