usb: modify the initial_descriptor_timeout to 500ms
Since retry times of kernel driver are 24 during USB enumeration, the total time of bad USB enumeration will waste 48 seconds. This patch will reduce the timeout from 2 seconds to 500ms, so the total time is changed to 12 seconds. (cherry-pick from commit dd9bb5578cd197b44f32c0c19aca79610b5bdd54) Bug: 256100001 Test: the timeout value is 500 Change-Id: I6c30e3c9168242f5c22443cbd5622892617e0520 Signed-off-by: Puma Hsu <pumahsu@google.com>
This commit is contained in:
parent
fef314ea8a
commit
0c3dc78fb9
1 changed files with 2 additions and 0 deletions
|
@ -152,6 +152,8 @@ on early-boot
|
|||
|
||||
on boot
|
||||
write /config/usb_gadget/g1/bcdDevice 0x0510
|
||||
# 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