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

Commit e29e0293 authored by Jack Pham's avatar Jack Pham
Browse files

usb: gadget: android: Add minimum delay between disconnect and connect



Some controller hardware, such as DWC3, need a minimum delay
between removing and re-applying the pullups in order for the
host to properly detect a soft disconnect and for subsequent
re-enumeration to succeed. Keep track of the last time
android_disable() was called and delay if necessary so that enough
time will have elapsed before calling usb_gadget_connect() from
android_enable().

Change-Id: I43ba441af7c7f1ea2ffe8547df5f004fbf07c823
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 42adf5ed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment