Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cfccf244 authored by Ernesto Ramos's avatar Ernesto Ramos Committed by Greg Kroah-Hartman
Browse files

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: default avatarErnesto Ramos <ernesto@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent a2c22721
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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 @@ int proc_start(void *hprocessor)
		}
	} else {
		pr_err("%s: Failed to start the dsp\n", __func__);
		proc_stop(p_proc_object);
	}

func_end: