diff options
author | Lokesh Vutla <lokeshvutla@ti.com> | 2019-09-04 16:01:27 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-10-11 10:07:33 -0400 |
commit | c08eb936263c67312cb55c354277f9dc3433b194 (patch) | |
tree | cae2475d85f59f2b8ba314c553b325e5d8b4bfe8 /drivers/remoteproc/sandbox_testproc.c | |
parent | 240b93201007183d5fd651a210ddb4c50ee30980 (diff) | |
download | u-boot-c08eb936263c67312cb55c354277f9dc3433b194.tar.gz |
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>
Diffstat (limited to 'drivers/remoteproc/sandbox_testproc.c')
-rw-r--r-- | drivers/remoteproc/sandbox_testproc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/remoteproc/sandbox_testproc.c b/drivers/remoteproc/sandbox_testproc.c index 5f35119ab71..eeee49c4ddc 100644 --- a/drivers/remoteproc/sandbox_testproc.c +++ b/drivers/remoteproc/sandbox_testproc.c @@ -306,9 +306,11 @@ static int sandbox_testproc_ping(struct udevice *dev) * sandbox_testproc_device_to_virt() - Convert device address to virtual address * @dev: device to operate upon * @da: device address + * @size: Size of the memory region @da is pointing to * @return converted virtual address */ -static void *sandbox_testproc_device_to_virt(struct udevice *dev, ulong da) +static void *sandbox_testproc_device_to_virt(struct udevice *dev, ulong da, + ulong size) { u64 paddr; |