From patchwork Wed Jul 28 14:54:53 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ramos Falcon, Ernesto" X-Patchwork-Id: 114808 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6SEpOud013587 for ; Wed, 28 Jul 2010 14:51:25 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755421Ab0G1Ouv (ORCPT ); Wed, 28 Jul 2010 10:50:51 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:58265 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755329Ab0G1Oua (ORCPT ); Wed, 28 Jul 2010 10:50:30 -0400 Received: from dlep33.itg.ti.com ([157.170.170.112]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id o6SEoMc3016383 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 28 Jul 2010 09:50:22 -0500 Received: from emcc1.sasken-mty.naucm.ext.ti.com (localhost [127.0.0.1]) by dlep33.itg.ti.com (8.13.7/8.13.7) with ESMTP id o6SEoLcT013967; Wed, 28 Jul 2010 09:50:21 -0500 (CDT) Received: from localhost.localdomain (x0076199-desktop.sasken-mty.naucm.ext.ti.com [10.87.230.107]) by emcc1.sasken-mty.naucm.ext.ti.com (8.13.8+Sun/8.13.8) with ESMTP id o6SEo4N8024733; Wed, 28 Jul 2010 09:50:06 -0500 (CDT) From: Ernesto Ramos To: gregkh@suse.de Cc: omar.ramirez@ti.com, ohad@wizery.com, ameya.palande@nokia.com, felipe.contreras@nokia.com, fernando.lugo@ti.com, linux-kernel@vger.kernel.org, andy.shevchenko@gmail.com, nm@ti.com, linux-omap@vger.kernel.org, Ernesto Ramos Subject: [PATCH 2/4] staging:ti dspbridge: proc_load/start should set IVA2 to OFF in case of failure Date: Wed, 28 Jul 2010 09:54:53 -0500 Message-Id: <1280328895-31375-3-git-send-email-ernesto@ti.com> X-Mailer: git-send-email 1.5.4.5 In-Reply-To: <1280328895-31375-2-git-send-email-ernesto@ti.com> References: <1280328895-31375-1-git-send-email-ernesto@ti.com> <1280328895-31375-2-git-send-email-ernesto@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 28 Jul 2010 14:51:25 +0000 (UTC) diff --git a/drivers/staging/tidspbridge/rmgr/proc.c b/drivers/staging/tidspbridge/rmgr/proc.c index 6258d8b..44c26e1 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: