Skip to content

Commit

Permalink
staging:ti dspbridge: proc_load/start should set IVA2 to OFF in case …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Ernesto Ramos authored and Greg Kroah-Hartman committed Jul 28, 2010
1 parent a2c2272 commit cfccf24
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/staging/tidspbridge/rmgr/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit cfccf24

Please sign in to comment.