usb: correct sys.usb.controller sysprop
system/core/init/init.cpp SetUsbController picks the first udc device if there're multiple udc devices present on the system to populate sys.usb.controller system property. CONFIG_USB_DUMMY_HCD enabled in kernel-5.10 GKI would introduce a dummy udc device named "dummy_udc.0". Depends on timing, the dummy device might be picked up by the init process and incorrectly populate sys.usb.controller. This issue only applies to devices on kernel-5.10 GKI, the WAR is to overwrite the sysprop if it's incorrectly populated by the dummy udc. Bug: 333778731 Test: tested on Cheetah Flag: EXEMPT bugfix Change-Id: I7555dda7f0bb436200ef7cd8a46b785232187cfd
This commit is contained in:
parent
6afa4bc6d1
commit
f13115f44c
1 changed files with 4 additions and 0 deletions
|
@ -417,3 +417,7 @@ on property:ro.bootmode=usbuwb
|
||||||
|
|
||||||
on property:vendor.usb.contaminantdisable=true
|
on property:vendor.usb.contaminantdisable=true
|
||||||
exec /vendor/bin/hw/disable_contaminant_detection.sh
|
exec /vendor/bin/hw/disable_contaminant_detection.sh
|
||||||
|
|
||||||
|
# WAR for kernel 5.10 with CONFIG_USB_DUMMY_HCD enabled
|
||||||
|
on property:sys.usb.controller=dummy_udc.0
|
||||||
|
setprop sys.usb.controller "11210000.dwc3"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue