mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 01:04:19 +08:00
staging:ti dspbridge: proc_load/start should set IVA2 to OFF in case of failure
When a base image is being loaded or started and by some reason the process fails, the IVA2 should be switched OFF. Signed-off-by: Ernesto Ramos <ernesto@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
a2c2272194
commit
cfccf244a7
@ -1302,9 +1302,10 @@ int proc_load(void *hprocessor, const s32 argc_index,
|
||||
}
|
||||
|
||||
func_end:
|
||||
if (status)
|
||||
if (status) {
|
||||
pr_err("%s: Processor failed to load\n", __func__);
|
||||
|
||||
proc_stop(p_proc_object);
|
||||
}
|
||||
DBC_ENSURE((!status
|
||||
&& p_proc_object->proc_state == PROC_LOADED)
|
||||
|| status);
|
||||
@ -1594,6 +1595,7 @@ func_cont:
|
||||
}
|
||||
} else {
|
||||
pr_err("%s: Failed to start the dsp\n", __func__);
|
||||
proc_stop(p_proc_object);
|
||||
}
|
||||
|
||||
func_end:
|
||||
|
Loading…
Reference in New Issue
Block a user