summaryrefslogtreecommitdiffstats
path: root/drivers/remoteproc
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2015-08-29 03:08:19 +0200
committerBjorn Andersson <bjorn.andersson@linaro.org>2016-01-30 02:26:45 +0100
commita66a5114b34bb23396568bf485e05a311b3ee22f (patch)
tree419d4f1c52fe981410c47ae5b83ce9259f8468c5 /drivers/remoteproc
parentLinux 4.5-rc1 (diff)
downloadlinux-a66a5114b34bb23396568bf485e05a311b3ee22f.tar.xz
linux-a66a5114b34bb23396568bf485e05a311b3ee22f.zip
remoteproc: report error if resource table doesn't exist
Currently, if the resource table is completely missing in the firmware, powering up the remoteproc fails silently. Add a message indicating that the resource table is missing in the firmware. Signed-off-by: Stefan Agner <stefan@agner.ch> Acked-by: Suman Anna <s-anna@ti.com> Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Diffstat (limited to 'drivers/remoteproc')
-rw-r--r--drivers/remoteproc/remoteproc_core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c
index 9e03d158f411..3d7d58a109d8 100644
--- a/drivers/remoteproc/remoteproc_core.c
+++ b/drivers/remoteproc/remoteproc_core.c
@@ -823,8 +823,10 @@ static int rproc_fw_boot(struct rproc *rproc, const struct firmware *fw)
/* look for the resource table */
table = rproc_find_rsc_table(rproc, fw, &tablesz);
- if (!table)
+ if (!table) {
+ dev_err(dev, "Failed to find resource table\n");
goto clean_up;
+ }
/* Verify that resource table in loaded fw is unchanged */
if (rproc->table_csum != crc32(0, table, tablesz)) {