aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErnesto Ramos <ernesto@ti.com>2010-07-28 10:54:53 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-07-28 11:23:20 -0400
commitcfccf244a76778132a59d79f802ff63a22e08f59 (patch)
tree4f526c670e8b3e5b43199aca2a6dc92e4fdc80e5
parenta2c2272194ac8bfe5ae3ec91e722a766d931d324 (diff)
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>
-rw-r--r--drivers/staging/tidspbridge/rmgr/proc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/staging/tidspbridge/rmgr/proc.c b/drivers/staging/tidspbridge/rmgr/proc.c
index 6258d8bad91c..44c26e11fc4a 100644
--- a/drivers/staging/tidspbridge/rmgr/proc.c
+++ b/drivers/staging/tidspbridge/rmgr/proc.c
@@ -1302,9 +1302,10 @@ int proc_load(void *hprocessor, const s32 argc_index,
1302 } 1302 }
1303 1303
1304func_end: 1304func_end:
1305 if (status) 1305 if (status) {
1306 pr_err("%s: Processor failed to load\n", __func__); 1306 pr_err("%s: Processor failed to load\n", __func__);
1307 1307 proc_stop(p_proc_object);
1308 }
1308 DBC_ENSURE((!status 1309 DBC_ENSURE((!status
1309 && p_proc_object->proc_state == PROC_LOADED) 1310 && p_proc_object->proc_state == PROC_LOADED)
1310 || status); 1311 || status);
@@ -1594,6 +1595,7 @@ func_cont:
1594 } 1595 }
1595 } else { 1596 } else {
1596 pr_err("%s: Failed to start the dsp\n", __func__); 1597 pr_err("%s: Failed to start the dsp\n", __func__);
1598 proc_stop(p_proc_object);
1597 } 1599 }
1598 1600
1599func_end: 1601func_end: