From f6de971bb321a7636c35b45ddfb12461ee5a4d98 Mon Sep 17 00:00:00 2001 From: Will McVicker Date: Wed, 13 Oct 2021 09:53:23 -0700 Subject: [PATCH] gs101: recovery: add wait for dwc3 device to probe This patch adds a dependency on the dwc3 device probing before setting the sys.usb.controller property. Without this, we have a race between fastbootd starting and the dwc3 device probing. If fastbootd starts before the dwc3 device probes, then the recovery init.rc will fail to setup the USB gadget resulting in "fastboot devices" failing to detect the device. Bug: 202338035 Test: verify device is detected in fastbootd Change-Id: I146451eae03f23dde915c00af3028681be41a8c1 --- conf/init.recovery.device.rc | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/init.recovery.device.rc b/conf/init.recovery.device.rc index 7b341200..c94d079f 100644 --- a/conf/init.recovery.device.rc +++ b/conf/init.recovery.device.rc @@ -1,4 +1,5 @@ on init + wait /sys/devices/platform/11110000.usb/11110000.dwc3/driver 10 setprop sys.usb.controller "11110000.dwc3" setprop sys.usb.configfs 1