remoteproc: ops: Add elf section size as input parameter to device_to_virt api
authorLokesh Vutla <lokeshvutla@ti.com>
Wed, 4 Sep 2019 10:31:27 +0000 (16:01 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 11 Oct 2019 14:07:33 +0000 (10:07 -0400)
commitc08eb936263c67312cb55c354277f9dc3433b194
treecae2475d85f59f2b8ba314c553b325e5d8b4bfe8
parent240b93201007183d5fd651a210ddb4c50ee30980
remoteproc: ops: Add elf section size as input parameter to device_to_virt api

Introduce a new parameter "size" that accepts size of the region to
remoteproc ops callback device_to_virt(). This can enforce more checks
on the region that device_to_virt() is dealing with.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Tested-by: Fabien Dessenne <fabien.dessenne@st.com>
Reviewed-by: Fabien Dessenne <fabien.dessenne@st.com>
drivers/remoteproc/rproc-elf-loader.c
drivers/remoteproc/sandbox_testproc.c
drivers/remoteproc/stm32_copro.c
include/remoteproc.h