From patchwork Thu Jun 3 05:47:41 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: omar ramirez X-Patchwork-Id: 103991 X-Patchwork-Delegate: omar.ramirez@ti.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o535ufAP018522 for ; Thu, 3 Jun 2010 05:56:43 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932650Ab0FCF4l (ORCPT ); Thu, 3 Jun 2010 01:56:41 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:44886 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932541Ab0FCF4W (ORCPT ); Thu, 3 Jun 2010 01:56:22 -0400 Received: from dlep34.itg.ti.com ([157.170.170.115]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id o535uId4003220 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 3 Jun 2010 00:56:18 -0500 Received: from legion.dal.design.ti.com (localhost [127.0.0.1]) by dlep34.itg.ti.com (8.13.7/8.13.7) with ESMTP id o535uFLR027279; Thu, 3 Jun 2010 00:56:15 -0500 (CDT) Received: from localhost (bacab.am.dhcp.ti.com [128.247.77.143]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id o535uEP27890; Thu, 3 Jun 2010 00:56:14 -0500 (CDT) From: Omar Ramirez Luna To: linux-omap Cc: Omar Ramirez Luna , Shivananda Hebbar , Hiroshi DOYU , Fernando Guzman Lugo , Ivan Gomez Castellanos , Ernesto Ramos , Armando Uribe De Leon , Ameya Palande , Felipe Contreras Subject: [PATCH 28/40] DSPBRIDGE: err code replace DSP_EDCDLOADBASE with EACCES Date: Thu, 3 Jun 2010 00:47:41 -0500 Message-Id: <1275544073-20418-29-git-send-email-omar.ramirez@ti.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1275544073-20418-1-git-send-email-omar.ramirez@ti.com> References: <1275544073-20418-1-git-send-email-omar.ramirez@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]); Thu, 03 Jun 2010 05:56:43 +0000 (UTC) diff --git a/arch/arm/plat-omap/include/dspbridge/dbdcd.h b/arch/arm/plat-omap/include/dspbridge/dbdcd.h index 17fb57a..b8daea9 100644 --- a/arch/arm/plat-omap/include/dspbridge/dbdcd.h +++ b/arch/arm/plat-omap/include/dspbridge/dbdcd.h @@ -36,7 +36,7 @@ * 0: Success. * -EACCES: Unable to find auto-registration section. * DSP_EDCDREADSECT: Unable to read object code section. - * DSP_EDCDLOADBASE: Unable to load code base. + * -EACCES: Unable to load code base. * -EFAULT: Invalid DCD_HMANAGER handle.. * Requires: * DCD initialized. @@ -62,7 +62,7 @@ extern dsp_status dcd_auto_register(IN struct dcd_manager *hdcd_mgr, * 0: Success. * -EACCES: Unable to find auto-registration section. * DSP_EDCDREADSECT: Unable to read object code section. - * DSP_EDCDLOADBASE: Unable to load code base. + * -EACCES: Unable to load code base. * -EFAULT: Invalid DCD_HMANAGER handle.. * Requires: * DCD initialized. @@ -258,7 +258,7 @@ extern dsp_status dcd_get_library_name(IN struct dcd_manager *hdcd_mgr, * DSP_EDCDPARSESECT: Unable to parse content of object code section. * DSP_EDCDREADSECT: Unable to read object code section. * DSP_EDCDGETSECT: Unable to access object code section. - * DSP_EDCDLOADBASE: Unable to load code base. + * -EACCES: Unable to load code base. * -EPERM: General failure. * -EFAULT: Invalid DCD_HMANAGER handle. * Requires: @@ -291,7 +291,7 @@ extern dsp_status dcd_get_object_def(IN struct dcd_manager *hdcd_mgr, * 0: Success. * -EACCES: Unable to find .dcd_register section. * DSP_EDCDREADSECT: Unable to read object code section. - * DSP_EDCDLOADBASE: Unable to load code base. + * -EACCES: Unable to load code base. * -EFAULT: Invalid DCD_HMANAGER handle.. * Requires: * DCD initialized. diff --git a/drivers/dsp/bridge/rmgr/dbdcd.c b/drivers/dsp/bridge/rmgr/dbdcd.c index dcca612..a2cda6b 100644 --- a/drivers/dsp/bridge/rmgr/dbdcd.c +++ b/drivers/dsp/bridge/rmgr/dbdcd.c @@ -467,7 +467,7 @@ dsp_status dcd_get_object_def(IN struct dcd_manager *hdcd_mgr, status = cod_open(dcd_mgr_obj->cod_mgr, dcd_key->path, COD_NOLOAD, &lib); if (DSP_FAILED(status)) { - status = DSP_EDCDLOADBASE; + status = -EACCES; goto func_end; } @@ -560,7 +560,7 @@ dsp_status dcd_get_objects(IN struct dcd_manager *hdcd_mgr, /* Open DSP coff file, don't load symbols. */ status = cod_open(dcd_mgr_obj->cod_mgr, pszCoffPath, COD_NOLOAD, &lib); if (DSP_FAILED(status)) { - status = DSP_EDCDLOADBASE; + status = -EACCES; goto func_cont; }