]> git.baikalelectronics.ru Git - kernel.git/commit
remoteproc: Introduce prepare and unprepare for subdevices
authorBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 26 Jun 2018 12:11:59 +0000 (07:11 -0500)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 26 Jun 2018 21:09:12 +0000 (14:09 -0700)
commit3624ef5c14791c958ae9eaa11e309fb37eb2e885
tree31ac7a50c43f4a4dfe7fd055302e54de2e35cb5f
parent2d89266b5e5dc9dccf9ab150623fd0ba223432ae
remoteproc: Introduce prepare and unprepare for subdevices

On rare occasions a subdevice might need to prepare some hardware
resources before a remote processor is booted, and clean up some
state after it has been shut down.

One such example is the IP Accelerator found in various Qualcomm
platforms, which is accessed directly from both the modem remoteproc
and the application subsystem and requires an intricate lockstep
process when bringing the modem up and down.

Tested-by: Fabien Dessenne <fabien.dessenne@st.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
[elder@linaro.org: minor description and comment edits]
Signed-off-by Alex Elder <elder@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c
include/linux/remoteproc.h