remoteproc: core: Task sync during rproc_fw_boot()
authorLee Jones <lee.jones@linaro.org>
Thu, 5 May 2016 13:29:39 +0000 (14:29 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 6 May 2016 18:46:36 +0000 (11:46 -0700)
commit3d87fa1d47c10c71684e1eca15cb051746ab1d56
tree03d70b9ead994d59d25067990b99b43c08c9fb87
parent9735a22799b9214d17d3c231fe377fc852f042e9
remoteproc: core: Task sync during rproc_fw_boot()

By default, rproc_fw_boot() needs to wait for rproc to be configured,
but a race may occur when using rpmsg/virtio.  In this case, it can
be called locally in a safe manor.

This patch represents two usecases:

 - External call (via exported rproc_boot()), which waits
 - Internal call can use 'nowait' version of rproc_boot()

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c
drivers/remoteproc/remoteproc_internal.h
drivers/remoteproc/remoteproc_virtio.c