Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1298501
| From | Bjorn Andersson <bjorn@kryo.se> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 1/4] remoteproc: core: Make the loaded resource table optional |
| Date | 2015-12-28 03:50 +0100 |
| Message-ID | <qKw3w-3Io-1015@gated-at.bofh.it> (permalink) |
| References | <qKw2U-3Io-261@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Remote processors like the ones found in the Qualcomm SoCs does not have
a resource table passed to them, so make it optional by only populating
it if it does exist.
Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
---
Changes since v1:
- None
drivers/remoteproc/remoteproc_core.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c
index 3d7d58a109d8..c04a786dc051 100644
--- a/drivers/remoteproc/remoteproc_core.c
+++ b/drivers/remoteproc/remoteproc_core.c
@@ -856,12 +856,8 @@ static int rproc_fw_boot(struct rproc *rproc, const struct firmware *fw)
* copy this information to device memory.
*/
loaded_table = rproc_find_loaded_rsc_table(rproc, fw);
- if (!loaded_table) {
- ret = -EINVAL;
- goto clean_up;
- }
-
- memcpy(loaded_table, rproc->cached_table, tablesz);
+ if (loaded_table)
+ memcpy(loaded_table, rproc->cached_table, tablesz);
/* power up the remote processor */
ret = rproc->ops->start(rproc);
--
2.5.0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v2 0/4] Qualcomm WCNSS Peripheral Image Loader Bjorn Andersson <bjorn@kryo.se> - 2015-12-28 03:50 +0100 [PATCH v2 4/4] remoteproc: qcom: Introduce WCNSS peripheral image loader Bjorn Andersson <bjorn@kryo.se> - 2015-12-28 03:50 +0100 [PATCH v2 1/4] remoteproc: core: Make the loaded resource table optional Bjorn Andersson <bjorn@kryo.se> - 2015-12-28 03:50 +0100
csiph-web