fe00027849
There is a bug in FastRPC when waking from suspend. Since HexagonRPCD is currently only useful for a few moments when the ADSP is requesting the sensor registry, it can just be stopped without affecting sensor support. Add a pre-suspend hook to stop HexagonRPCD so it doesn't crash the ADSP when the device wakes up. [ci:skip-build]: already built successfully in CI
9 lines
281 B
Bash
9 lines
281 B
Bash
#!/bin/sh
|
|
|
|
if [ "$1" = "pre" ]
|
|
then
|
|
# If HexagonRPCD listens for a remote method call while the device is
|
|
# waking up, the DSP may crash. Assume that HexagonRPCD has fulfilled
|
|
# all incoming remote method invocations, and stop it.
|
|
rc-service hexagonrpcd-adsp-sensorspd stop
|
|
fi
|