remoteproc: stm32: add capability to detach
authorArnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Wed, 31 Mar 2021 07:33:47 +0000 (09:33 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 14 Apr 2021 14:59:21 +0000 (09:59 -0500)
commitedf696f26855788cdff832ac83319e1f2aafcc90
treeabbc0f1be33af28b38c7c165ea67e50af35921a1
parentaca8f94e5b69b31d7a6a18476a1011093e2a1c30
remoteproc: stm32: add capability to detach

A mechanism similar to the shutdown mailbox signal is implemented to
detach a remote processor.

Upon detachment, a signal is sent to the remote firmware, allowing it
to perform specific actions such as stopping rpmsg communication.

The Cortex-M hold boot is also disabled to allow the remote processor
to restart in case of crash.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Tested-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20210331073347.8293-3-arnaud.pouliquen@foss.st.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/stm32_rproc.c