From patchwork Thu Jun 3 05:47:32 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: omar ramirez X-Patchwork-Id: 104005 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 o535v1Ag018658 for ; Thu, 3 Jun 2010 05:57:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932697Ab0FCF5A (ORCPT ); Thu, 3 Jun 2010 01:57:00 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:56430 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932406Ab0FCF4R (ORCPT ); Thu, 3 Jun 2010 01:56:17 -0400 Received: from dlep36.itg.ti.com ([157.170.170.91]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id o535uGCQ020749 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 3 Jun 2010 00:56:16 -0500 Received: from legion.dal.design.ti.com (localhost [127.0.0.1]) by dlep36.itg.ti.com (8.13.8/8.13.8) with ESMTP id o535uC1R004642; Thu, 3 Jun 2010 00:56:13 -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 o535uCP27850; Thu, 3 Jun 2010 00:56:12 -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 19/40] DSPBRIDGE: err code replace COD_E_NOSYMBOLSLOADED with ESPIPE Date: Thu, 3 Jun 2010 00:47:32 -0500 Message-Id: <1275544073-20418-20-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:57:01 +0000 (UTC) diff --git a/arch/arm/plat-omap/include/dspbridge/cod.h b/arch/arm/plat-omap/include/dspbridge/cod.h index 76b6ae9..8a4919e 100644 --- a/arch/arm/plat-omap/include/dspbridge/cod.h +++ b/arch/arm/plat-omap/include/dspbridge/cod.h @@ -212,7 +212,7 @@ extern dsp_status cod_get_loader(struct cod_manager *cod_mgr_obj, * puLen: Location to store length. * Returns: * 0: Success - * COD_E_NOSYMBOLSLOADED: Symbols have not been loaded onto the board. + * -ESPIPE: Symbols have not been loaded onto the board. * -ESPIPE: The symbol could not be found. * Requires: * COD module initialized. @@ -242,7 +242,7 @@ extern dsp_status cod_get_section(struct cod_libraryobj *lib, * value: value of the symbol * Returns: * 0: Success. - * COD_E_NOSYMBOLSLOADED: Symbols have not been loaded onto the board. + * -ESPIPE: Symbols have not been loaded onto the board. * -ESPIPE: The symbol could not be found. * Requires: * COD module initialized. @@ -355,7 +355,7 @@ extern dsp_status cod_open_base(struct cod_manager *hmgr, IN char *pszCoffPath, * pstrContent - buffer to store content of the section. * Returns: * 0: on success, error code on failure - * COD_E_NOSYMBOLSLOADED: Symbols have not been loaded onto the board. + * -ESPIPE: Symbols have not been loaded onto the board. * COD_E_READFAILED: Failed to read content of code section. * Requires: * COD module initialized. diff --git a/arch/arm/plat-omap/include/dspbridge/dev.h b/arch/arm/plat-omap/include/dspbridge/dev.h index e75a141..cf48c07 100644 --- a/arch/arm/plat-omap/include/dspbridge/dev.h +++ b/arch/arm/plat-omap/include/dspbridge/dev.h @@ -492,7 +492,7 @@ extern dsp_status dev_get_node_manager(struct dev_object * Returns: * 0: Success. * -EFAULT: Invalid hdev_obj. - * COD_E_NOSYMBOLSLOADED: Symbols have not been loaded onto the board. + * -ESPIPE: Symbols have not been loaded onto the board. * -ESPIPE: The symbol could not be found. * Requires: * pstrSym != NULL. diff --git a/drivers/dsp/bridge/pmgr/cod.c b/drivers/dsp/bridge/pmgr/cod.c index 5a18853..342c1b3 100644 --- a/drivers/dsp/bridge/pmgr/cod.c +++ b/drivers/dsp/bridge/pmgr/cod.c @@ -417,7 +417,7 @@ dsp_status cod_get_section(struct cod_libraryobj *lib, IN char *pstrSect, status = cod_mgr_obj->fxns.get_sect_fxn(lib->dbll_lib, pstrSect, puAddr, puLen); } else { - status = COD_E_NOSYMBOLSLOADED; + status = -ESPIPE; } DBC_ENSURE(DSP_SUCCEEDED(status) || ((*puAddr == 0) && (*puLen == 0))); @@ -453,7 +453,7 @@ dsp_status cod_get_sym_value(struct cod_manager *hmgr, char *pstrSym, return -ESPIPE; } } else { - return COD_E_NOSYMBOLSLOADED; + return -ESPIPE; } *pul_value = dbll_sym->value; @@ -642,7 +642,7 @@ dsp_status cod_read_section(struct cod_libraryobj *lib, IN char *pstrSect, lib->cod_mgr->fxns.read_sect_fxn(lib->dbll_lib, pstrSect, pstrContent, cContentSize); else - status = COD_E_NOSYMBOLSLOADED; + status = -ESPIPE; return status; }