summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2019-03-18 21:47:18 -0700
committerJohn Stultz <john.stultz@linaro.org>2019-03-18 21:50:54 -0700
commitcadc87f48b0bbafa4aaf1799b109bc6f7df7849e (patch)
treeaf4e73aa484e0dcd7927df133bf22947d2c34320
parent723ccc2845ae66a3877f415b65f15db643910fef (diff)
downloadhikey-cadc87f48b0bbafa4aaf1799b109bc6f7df7849e.tar.gz
HACK: hikey/hikey960: Disable nonblocking_ffs to avoid recent crashes with adbd
Recent changes to adbd have enabled nonblocking_ffs by default. These have seeminly uncovered some bad memory corruption in the kernel ffs gadget driver on every kernel I've tried so far. Unfortunately I've not been able to diagnose what is going wrong, so for now, lets disable the nonblocking_ffs. We still need to root cause the issue as its a problem even with the mainline kernel on HiKey, so its likely a generic kernel issue. Change-Id: I7a0797cc9e8e5f263e533beea23642f768c0f017 Signed-off-by: John Stultz <john.stultz@linaro.org>
-rw-r--r--init.common.rc4
1 files changed, 4 insertions, 0 deletions
diff --git a/init.common.rc b/init.common.rc
index 6d66ca7f..5950f615 100644
--- a/init.common.rc
+++ b/init.common.rc
@@ -59,6 +59,10 @@ on post-fs
# If an app forces screen rotation, revert it once the apps closes
setprop persist.demo.rotationlock 1
+# avoid USB crash
+ setprop persist.adb.nonblocking_ffs 0
+ setprop ro.adb.nonblocking_ffs 0
+
# enable Google-specific location features,
# like NetworkLocationProvider and LocationCollector
setprop ro.com.google.locationfeatures 1