From 8ee17b3a8fcdd6bdda11bbd12e11f54139948d8d Mon Sep 17 00:00:00 2001 From: Ray Chi Date: Tue, 16 May 2023 14:44:57 +0800 Subject: [PATCH] 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 --- conf/init.zuma.usb.rc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf/init.zuma.usb.rc b/conf/init.zuma.usb.rc index 7b4ef192..d8925eaa 100644 --- a/conf/init.zuma.usb.rc +++ b/conf/init.zuma.usb.rc @@ -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