Commit a66a5114 authored by Stefan Agner's avatar Stefan Agner Committed by Bjorn Andersson

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: default avatarStefan Agner <stefan@agner.ch>
Acked-by: default avatarSuman Anna <s-anna@ti.com>
Signed-off-by: default avatarOhad Ben-Cohen <ohad@wizery.com>
parent 92e963f5
...@@ -823,8 +823,10 @@ static int rproc_fw_boot(struct rproc *rproc, const struct firmware *fw) ...@@ -823,8 +823,10 @@ static int rproc_fw_boot(struct rproc *rproc, const struct firmware *fw)
/* look for the resource table */ /* look for the resource table */
table = rproc_find_rsc_table(rproc, fw, &tablesz); table = rproc_find_rsc_table(rproc, fw, &tablesz);
if (!table) if (!table) {
dev_err(dev, "Failed to find resource table\n");
goto clean_up; goto clean_up;
}
/* Verify that resource table in loaded fw is unchanged */ /* Verify that resource table in loaded fw is unchanged */
if (rproc->table_csum != crc32(0, table, tablesz)) { if (rproc->table_csum != crc32(0, table, tablesz)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment