remoteproc: Move resource table load logic to find
Extend the previous operation of finding the resource table in the ELF with the extra step of populating the rproc struct with a copy and the size. This allows drivers to override the mechanism used for acquiring the resource table, or omit it for firmware that is known not to have a resource table. This leaves the custom, dummy, find_rsc_table implementations found in some drivers dangling. Reviewed-By:Loic Pallardy <loic.pallardy@st.com> Tested-By:
Loic Pallardy <loic.pallardy@st.com> Signed-off-by:
Bjorn Andersson <bjorn.andersson@linaro.org>
Showing
- drivers/remoteproc/remoteproc_core.c 7 additions, 25 deletionsdrivers/remoteproc/remoteproc_core.c
- drivers/remoteproc/remoteproc_elf_loader.c 22 additions, 15 deletionsdrivers/remoteproc/remoteproc_elf_loader.c
- drivers/remoteproc/remoteproc_internal.h 6 additions, 10 deletionsdrivers/remoteproc/remoteproc_internal.h
- include/linux/remoteproc.h 2 additions, 0 deletionsinclude/linux/remoteproc.h
Loading
Please register or sign in to comment