remoteproc: Move rproc_vdev management to remoteproc_virtio.c
authorArnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Wed, 21 Sep 2022 13:50:43 +0000 (15:50 +0200)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 21 Sep 2022 17:14:46 +0000 (11:14 -0600)
commit9c31255ce5fe8ce61d947ba496a6058e22d2375b
tree25a453ecc58f36e91cc46d81ac60c125a16e1472
parent63badba9457147b64dbd4680518a810456eeed0c
remoteproc: Move rproc_vdev management to remoteproc_virtio.c

Move functions related to the management of the rproc_vdev
structure in the remoteproc_virtio.c.
The aim is to decorrelate as possible the virtio management from
the core part.

Due to the strong correlation between the vrings and the resource table
the rproc_alloc/parse/free_vring functions are kept in the remoteproc core.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Link: https://lore.kernel.org/r/20220921135044.917140-4-arnaud.pouliquen@foss.st.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/remoteproc_core.c
drivers/remoteproc/remoteproc_internal.h
drivers/remoteproc/remoteproc_virtio.c