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
This commit is contained in:
Ray Chi 2022-02-21 14:22:42 +08:00 committed by TreeHugger Robot
parent 3923566e2c
commit 48ebc5fe18

View file

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