summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2018-08-15 17:25:46 -0700
committerJohn Stultz <john.stultz@linaro.org>2018-08-15 17:30:51 -0700
commit0c244e86dcced923c1ac4e9fe137e1ae55064b48 (patch)
tree8652f11e80848320bc36e758d2658fadf047d5f6
parent72ef1bb61148c9a9fde97328c3df0dbabfc59e78 (diff)
downloadhikey-0c244e86dcced923c1ac4e9fe137e1ae55064b48.tar.gz
HiKey960: Add sys.usb.controller override for newer kernels
From: Yu Chen <chenyu56@huawei.com> With the usb rework going on against mainline kernels, Android sometimes gets confused as to which device to use for usb-gadget functionality. Thus this adds: PRODUCT_DEFAULT_PROPERTY_OVERRIDES += sys.usb.controller=ff100000.dwc3 To make sure the right device is selected. Without this, if we boot using host mode and then plug in the gadget connection, the system will not setup the gadget device and adb will not function. Additionally, this should not have any side-effects on older kernels. Yu Chen clarifies: the property of "sys.usb.controller" should always be "ff100000.dwc3" on hikey960. Previously we did not use the code from drivers/usb/dwc3/drd.c to handle the data-role-switch" in our older code, and the dwc3 udc always exists in "/sys/class/udc" in older kernels. Change-Id: Ic21da64ab1b7cba452ca0ec9580ba90ca59f5d0c Signed-off-by: John Stultz <john.stultz@linaro.org>
-rw-r--r--hikey960/device-hikey960.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/hikey960/device-hikey960.mk b/hikey960/device-hikey960.mk
index f96d77af..65ae7edb 100644
--- a/hikey960/device-hikey960.mk
+++ b/hikey960/device-hikey960.mk
@@ -52,6 +52,8 @@ PRODUCT_PACKAGES += libGLES_mali.so \
PRODUCT_PACKAGES += power.hikey960
+PRODUCT_DEFAULT_PROPERTY_OVERRIDES += sys.usb.controller=ff100000.dwc3
+
PRODUCT_PACKAGES += sensors.hikey960
# Unfortunately inherit-product doesn't export build variables from the