remoteproc: Introduce "panic" callback in ops
authorBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 24 Mar 2020 05:29:02 +0000 (22:29 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 26 Mar 2020 05:29:45 +0000 (22:29 -0700)
commitdc5192c449368eed3385f4405670aa3ed21d6270
tree9875fe39fdbebb01dd5649cf2dbfee809ccead83
parentc0abe2ca3605e4c4fb25bf69d0218c63baf71d2b
remoteproc: Introduce "panic" callback in ops

Introduce generic support for handling kernel panics in remoteproc
drivers, in order to allow operations needed for aiding in post mortem
system debugging, such as flushing caches etc.

The function can return a number of milliseconds needed by the remote to
"settle" and the core will wait the longest returned duration before
returning from the panic handler.

Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20200324052904.738594-3-bjorn.andersson@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c
include/linux/remoteproc.h