From 48ebc5fe18e3f5aa57b626ef97c2f2202a307dc8 Mon Sep 17 00:00:00 2001 From: Ray Chi Date: Mon, 21 Feb 2022 14:22:42 +0800 Subject: [PATCH] recovery: add wait for dwc3 device to probe If fastbootd starts before the dwc3 device probes, fastbootd would be failed to enable USB gadget. This patch adds a dependency on the dwc3 device probing before setting the sys.usb.controller property. Bug: 220393297 Test: build pass, fastboot works Change-Id: I4e5b34354f19547f55acc53ccff0b54adce2d982 --- 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 29cbff15..592efbd3 100644 --- a/conf/init.recovery.device.rc +++ b/conf/init.recovery.device.rc @@ -1,4 +1,5 @@ on init + wait /sys/devices/platform/11210000.usb/11210000.dwc3/driver 10 setprop sys.usb.controller "11210000.dwc3" setprop sys.usb.configfs 1