init.common.usb.rc: Add setprop sys.usb.controller to avoid picking the dummy hcd
cherry-picked from upstream device/linaro/dragonboard project.
With some kernels that neable DUMMY_USB_HCD, we end up with
multiple UDC devices, and the system might pick the dummy one
to use which causes adb to fail.
This corrects this by setting the sys.usb.controller property
to the db845c controller name.
Signed-off-by: John Stultz <john.stultz@linaro.org>
Change-Id: Ife99b9b16204cfe767c8b755ec5208ce5047c211
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
diff --git a/init.common.usb.rc b/init.common.usb.rc
index 50a4340..06ccd54 100644
--- a/init.common.usb.rc
+++ b/init.common.usb.rc
@@ -26,6 +26,8 @@
mkdir /dev/usb-ffs/ptp 0770 mtp mtp
mount functionfs mtp /dev/usb-ffs/mtp rmode=0770,fmode=0660,uid=1024,gid=1024,no_disconnect=1
mount functionfs ptp /dev/usb-ffs/ptp rmode=0770,fmode=0660,uid=1024,gid=1024,no_disconnect=1
+ setprop sys.usb.controller "a600000.dwc3"
+
setprop sys.usb.mtp.device_type 3
setprop sys.usb.configfs 1
setprop sys.usb.ffs.aio_compat 1