remoteproc: stm32: Improve crash recovery time
authorArnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Tue, 21 Dec 2021 14:31:29 +0000 (15:31 +0100)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Mon, 3 Jan 2022 18:40:45 +0000 (11:40 -0700)
commitcfcabbb24d5f4e52ce2e7797cbcfacd8fe932fb6
treeea2d49c30fb0668da2a28647a22e17b469a779ce
parentba635863779871a4f873511199f3e0ae84d5e592
remoteproc: stm32: Improve crash recovery time

When a stop is requested on a crash, it is useless to try to shutdown it
gracefully, it is crashed.

In this case don't send the STM32_MBX_SHUTDOWN mailbox message that
will block the recovery during 500 ms, waiting an answer from the
coprocessor.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Link: https://lore.kernel.org/r/20211221143129.18415-1-arnaud.pouliquen@foss.st.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/stm32_rproc.c