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>
}
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);
}
} else {
pr_err("%s: Failed to start the dsp\n", __func__);
+ proc_stop(p_proc_object);
}
func_end: