From: Stefan Agner Date: Sat, 29 Aug 2015 01:08:19 +0000 (-0700) Subject: remoteproc: report error if resource table doesn't exist X-Git-Tag: v4.6-rc1~125^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a66a5114b34bb23396568bf485e05a311b3ee22f;p=platform%2Fkernel%2Flinux-exynos.git 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 Acked-by: Suman Anna Signed-off-by: Ohad Ben-Cohen --- diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c index 9e03d15..3d7d58a 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)) {