remoteproc: Pass type of shutdown to subdev remove
authorBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 31 Oct 2017 06:11:14 +0000 (23:11 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 13 Feb 2018 00:57:22 +0000 (16:57 -0800)
commit880f5b388252fedb26c70bb80ad1d7c8abbc0607
tree90908a2cea6f8f71c8966b6b638c3b880bf9f440
parentdcb57ed43d9ec5e16628c337143cd6b387f42778
remoteproc: Pass type of shutdown to subdev remove

remoteproc instances can be stopped either by invoking shutdown or by an
attempt to recover from a crash. For some subdev types it's expected to
clean up gracefully during a shutdown, but are unable to do so during a
crash - so pass this information to the subdev remove functions.

Acked-By: Chris Lew <clew@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/qcom_common.c
drivers/remoteproc/remoteproc_core.c
include/linux/remoteproc.h