summaryrefslogtreecommitdiff
path: root/qcom
diff options
context:
space:
mode:
authorAmit Pundir <amit.pundir@linaro.org>2020-06-11 22:02:24 +0530
committerAmit Pundir <amit.pundir@linaro.org>2020-06-12 04:50:46 +0000
commit66a926c714312da505cefa7a2856eae9f391ea67 (patch)
tree54964aca2e8070f5d02ab495b130420fa52aee27 /qcom
parent29e6b8138bf1a863b7f78d3a6b7a2eef5e3643c1 (diff)
init.qcom.rc: Add a custom shutdown trigger to kill rmtfs
There is a kernel bug uncovered in db845c modem shutdown path in v5.7-rc1, where "reboot" or "reboot bootloader" commands do not work as expected when the device is connected to a WiFi AP. The db845c hard crashes on reboot, resulting in the device getting stuck in the usb crash debug mode and not coming back up without a hard power off. There is no reboot regression when the board is not connected to any AP. This kernel issue is already reported upstream: https://lists.infradead.org/pipermail/ath10k/2020-April/014970.html https://lists.infradead.org/pipermail/ath10k/2020-June/015206.html For now here is a userspace workaround where we do not wait for modem to shutdown gracefully (SIGTERM during reboot), instead we stop the rmtfs service explicitly using the "on shutdown" init trigger, thereby sending a SIGKILL signal. Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: Ieb8b65ceb979b1f698ddf7ae48ce49652b99a9dc
Diffstat (limited to 'qcom')
-rw-r--r--qcom/init.qcom.rc3
1 files changed, 3 insertions, 0 deletions
diff --git a/qcom/init.qcom.rc b/qcom/init.qcom.rc
index 5867179..4319569 100644
--- a/qcom/init.qcom.rc
+++ b/qcom/init.qcom.rc
@@ -56,3 +56,6 @@ on post-fs-data
write /sys/class/firmware/timeout 1
start tqftpserv
start rmtfs
+
+on shutdown
+ stop rmtfs