diff options
Diffstat (limited to 'drivers/remoteproc/remoteproc_core.c')
| -rw-r--r-- | drivers/remoteproc/remoteproc_core.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c index a7ee05006cca..a112f5969d4a 100644 --- a/drivers/remoteproc/remoteproc_core.c +++ b/drivers/remoteproc/remoteproc_core.c | |||
| @@ -972,9 +972,7 @@ static void rproc_fw_config_virtio(const struct firmware *fw, void *context) | |||
| 972 | { | 972 | { |
| 973 | struct rproc *rproc = context; | 973 | struct rproc *rproc = context; |
| 974 | 974 | ||
| 975 | /* if rproc is marked always-on, request it to boot */ | 975 | rproc_boot(rproc); |
| 976 | if (rproc->auto_boot) | ||
| 977 | rproc_boot(rproc); | ||
| 978 | 976 | ||
| 979 | release_firmware(fw); | 977 | release_firmware(fw); |
| 980 | } | 978 | } |
| @@ -1286,9 +1284,13 @@ int rproc_add(struct rproc *rproc) | |||
| 1286 | 1284 | ||
| 1287 | /* create debugfs entries */ | 1285 | /* create debugfs entries */ |
| 1288 | rproc_create_debug_dir(rproc); | 1286 | rproc_create_debug_dir(rproc); |
| 1289 | ret = rproc_add_virtio_devices(rproc); | 1287 | |
| 1290 | if (ret < 0) | 1288 | /* if rproc is marked always-on, request it to boot */ |
| 1291 | return ret; | 1289 | if (rproc->auto_boot) { |
| 1290 | ret = rproc_add_virtio_devices(rproc); | ||
| 1291 | if (ret < 0) | ||
| 1292 | return ret; | ||
| 1293 | } | ||
| 1292 | 1294 | ||
| 1293 | /* expose to rproc_get_by_phandle users */ | 1295 | /* expose to rproc_get_by_phandle users */ |
| 1294 | mutex_lock(&rproc_list_mutex); | 1296 | mutex_lock(&rproc_list_mutex); |
