usb: modify the 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. Bug: 282876796 Test: build pass and the value is set to 500. Change-Id: Ib54d8ff5a1e680fc86f2b89ee0d02d63ee5741d8
This commit is contained in:
parent
487f56aee4
commit
8ee17b3a8f
1 changed files with 2 additions and 0 deletions
|
@ -151,6 +151,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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue