remoteproc: Move resource table load logic to find
authorBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 5 Jan 2018 23:58:03 +0000 (15:58 -0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 15 Jan 2018 17:29:53 +0000 (09:29 -0800)
commit58b640906702bcc083ac783bf10325e22c67d9fc
treea9464c01c1f24b6977f7fefa67066a2e10eb4fea
parentd4bb86f2c39cdd31338dd0274540596aa9ae82c3
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>
drivers/remoteproc/remoteproc_core.c
drivers/remoteproc/remoteproc_elf_loader.c
drivers/remoteproc/remoteproc_internal.h
include/linux/remoteproc.h