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 Signed-off-by: Jimmy Hu <hhhuuu@google.com>
This commit is contained in:
@@ -3,6 +3,7 @@ on fs
|
|||||||
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
|
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
|
||||||
|
|
||||||
on init
|
on init
|
||||||
|
wait /sys/devices/platform/soc/a600000.ssusb/a600000.dwc3/driver 10
|
||||||
setprop sys.usb.configfs 1
|
setprop sys.usb.configfs 1
|
||||||
# Don't lose recovery logs- keep warm reset for coming out of recovery.
|
# Don't lose recovery logs- keep warm reset for coming out of recovery.
|
||||||
write /sys/module/msm_poweroff/parameters/warm_reset 1
|
write /sys/module/msm_poweroff/parameters/warm_reset 1
|
||||||
|
|||||||
Reference in New Issue
Block a user