diff options
author | Ernesto Ramos | 2010-07-28 16:54:53 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2010-07-28 17:23:20 +0200 |
commit | cfccf244a76778132a59d79f802ff63a22e08f59 (patch) | |
tree | 4f526c670e8b3e5b43199aca2a6dc92e4fdc80e5 /drivers/staging | |
parent | staging:ti dspbridge: fix bridge_brd_stop so IVA2 is set OFF (diff) | |
download | kernel-qcow2-linux-cfccf244a76778132a59d79f802ff63a22e08f59.tar.gz kernel-qcow2-linux-cfccf244a76778132a59d79f802ff63a22e08f59.tar.xz kernel-qcow2-linux-cfccf244a76778132a59d79f802ff63a22e08f59.zip |
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/tidspbridge/rmgr/proc.c | 6 |
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, } 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: |