]> git.baikalelectronics.ru Git - kernel.git/commit
remoteproc: add release ops in rproc_mem_entry struct
authorLoic Pallardy <loic.pallardy@st.com>
Fri, 27 Jul 2018 13:14:38 +0000 (15:14 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 10 Oct 2018 05:39:04 +0000 (22:39 -0700)
commitd42c5e85045bb71c474b59491649797892108f30
treead2758e4a3380d2fc62aa16cf9524fd039e168f7
parent9f2b97c8fed105b32e025f60a77d896312db8ce2
remoteproc: add release ops in rproc_mem_entry struct

Memory entry could be allocated in different ways (ioremap,
dma_alloc_coherent, internal RAM allocator...).
This patch introduces a release ops in rproc_mem_entry structure
to associate dedicated release mechanism to each memory entry descriptor
in order to keep remoteproc core generic.

Signed-off-by: Loic Pallardy <loic.pallardy@st.com>
Acked-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c
include/linux/remoteproc.h