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:
Ray Chi 2023-05-16 14:44:57 +08:00
parent 487f56aee4
commit 8ee17b3a8f

View file

@ -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