msm8976-common: 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.

Signed-off-by: John Stultz <john.stultz@linaro.org>
This commit is contained in:
John Stultz 2020-03-05 22:59:20 +01:00 committed by ripee
parent 97aa3b8823
commit ac522297f7
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,8 @@ on boot
write /sys/class/android_usb/android0/f_rndis/manufacturer ${ro.product.manufacturer}
setprop persist.sys.usb.config.extra none
setprop sys.usb.ffs.aio_compat 1
setprop persist.adb.nonblocking_ffs 0
setprop ro.adb.nonblocking_ffs 0
on charger
setprop sys.usb.config mtp