remoteproc: stm32: clear MCU PDDS at firmware start
authorFabien Dessenne <fabien.dessenne@st.com>
Mon, 26 Aug 2019 15:38:06 +0000 (17:38 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 26 Aug 2019 21:52:26 +0000 (14:52 -0700)
commitabbe429d56168b90c03bc548403d72505e4fd6b2
tree148da9574efb42e93b80b2e915ae31df1b683891
parentf2583fde2719362039a6efb3b4094f46284df541
remoteproc: stm32: clear MCU PDDS at firmware start

When remoteproc stops a firmware, it sets the MCU PDDS flag, allowing
the platform to reach the Standby power mode if needed.
Symmetrically, clear this flag before running a firmware.
This fixes the issue where the system goes to Standby mode when the
MCU crashes while MPU is in CSTOP mode.

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/stm32_rproc.c