usb: modify initial_descriptor_timeout to 500ms
If the enumeration is too long, it may trigger the watchdog mechanism to cause device reset. Therefore, this patch will modify the timeout. Ported from Change-Id: Ib54d8ff5a1e680fc86f2b89ee0d02d63ee5741d8 (usb: modify the initial_descriptor_timeout to 500ms) Bug: 365715654 Test: verified `initial_descriptor_timeout` is set to 500 Flag: EXEMPT cherry-picked CLs from existing projects Change-Id: I36c5a0ba0a766720cd7d6601cc56f3a883adac8a Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
This commit is contained in:
parent
9fdb22a36a
commit
619db1107c
1 changed files with 2 additions and 0 deletions
|
@ -252,6 +252,8 @@ on early-boot
|
|||
setprop vendor.usb.functions.ready 1
|
||||
|
||||
on boot
|
||||
# Set USB timeout
|
||||
write sys/module/usbcore/parameters/initial_descriptor_timeout 500
|
||||
# Use USB Gadget HAL
|
||||
setprop sys.usb.configfs 2
|
||||
# Enable in-kernel media-presence polling for SD cards
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue