linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Omar Ramirez Luna <omar.ramirez@ti.com>
To: linux-omap <linux-omap@vger.kernel.org>
Cc: Omar Ramirez Luna <omar.ramirez@ti.com>,
	Shivananda Hebbar <x0hebbar@ti.com>,
	Hiroshi DOYU <Hiroshi.DOYU@nokia.com>,
	Fernando Guzman Lugo <x0095840@ti.com>,
	Ivan Gomez Castellanos <ivan.gomez@ti.com>,
	Ernesto Ramos <ernesto@ti.com>,
	Armando Uribe De Leon <x0095078@ti.com>,
	Ameya Palande <ameya.palande@nokia.com>,
	Felipe Contreras <felipe.contreras@nokia.com>
Subject: [PATCH 27/40] DSPBRIDGE: err code replace DSP_EDCDNOAUTOREGISTER with EACCES
Date: Thu,  3 Jun 2010 00:47:40 -0500	[thread overview]
Message-ID: <1275544073-20418-28-git-send-email-omar.ramirez@ti.com> (raw)
In-Reply-To: <1275544073-20418-1-git-send-email-omar.ramirez@ti.com>

Replace DSP_EDCDNOAUTOREGISTER with EACCES

Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
---
 arch/arm/plat-omap/include/dspbridge/dbdcd.h |    6 +++---
 drivers/dsp/bridge/rmgr/dbdcd.c              |    2 +-
 drivers/dsp/bridge/rmgr/proc.c               |    4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/arch/arm/plat-omap/include/dspbridge/dbdcd.h b/arch/arm/plat-omap/include/dspbridge/dbdcd.h
index f7e4e79..17fb57a 100644
--- a/arch/arm/plat-omap/include/dspbridge/dbdcd.h
+++ b/arch/arm/plat-omap/include/dspbridge/dbdcd.h
@@ -34,7 +34,7 @@
  *                              objects to be registered.
  *  Returns:
  *      0:                Success.
- *      DSP_EDCDNOAUTOREGISTER: Unable to find auto-registration section.
+ *      -EACCES: Unable to find auto-registration section.
  *      DSP_EDCDREADSECT:       Unable to read object code section.
  *      DSP_EDCDLOADBASE:       Unable to load code base.
  *      -EFAULT:            Invalid DCD_HMANAGER handle..
@@ -60,7 +60,7 @@ extern dsp_status dcd_auto_register(IN struct dcd_manager *hdcd_mgr,
  *                              DCD objects to be unregistered.
  *  Returns:
  *      0:                Success.
- *      DSP_EDCDNOAUTOREGISTER: Unable to find auto-registration section.
+ *      -EACCES: Unable to find auto-registration section.
  *      DSP_EDCDREADSECT:       Unable to read object code section.
  *      DSP_EDCDLOADBASE:       Unable to load code base.
  *      -EFAULT:            Invalid DCD_HMANAGER handle..
@@ -289,7 +289,7 @@ extern dsp_status dcd_get_object_def(IN struct dcd_manager *hdcd_mgr,
  *      handle:                 Handle to pass to callback.
  *  Returns:
  *      0:                Success.
- *      DSP_EDCDNOAUTOREGISTER: Unable to find .dcd_register section.
+ *      -EACCES: Unable to find .dcd_register section.
  *      DSP_EDCDREADSECT:       Unable to read object code section.
  *      DSP_EDCDLOADBASE:       Unable to load code base.
  *      -EFAULT:            Invalid DCD_HMANAGER handle..
diff --git a/drivers/dsp/bridge/rmgr/dbdcd.c b/drivers/dsp/bridge/rmgr/dbdcd.c
index 1731334..dcca612 100644
--- a/drivers/dsp/bridge/rmgr/dbdcd.c
+++ b/drivers/dsp/bridge/rmgr/dbdcd.c
@@ -567,7 +567,7 @@ dsp_status dcd_get_objects(IN struct dcd_manager *hdcd_mgr,
 	/* Get DCD_RESIGER_SECTION section information. */
 	status = cod_get_section(lib, DCD_REGISTER_SECTION, &ul_addr, &ul_len);
 	if (DSP_FAILED(status) || !(ul_len > 0)) {
-		status = DSP_EDCDNOAUTOREGISTER;
+		status = -EACCES;
 		goto func_cont;
 	}
 
diff --git a/drivers/dsp/bridge/rmgr/proc.c b/drivers/dsp/bridge/rmgr/proc.c
index 1f46f66..1afdff0 100644
--- a/drivers/dsp/bridge/rmgr/proc.c
+++ b/drivers/dsp/bridge/rmgr/proc.c
@@ -907,13 +907,13 @@ dsp_status proc_load(void *hprocessor, IN CONST s32 argc_index,
 		if (DSP_SUCCEEDED(status)) {
 			/*  Auto register nodes in specified COFF
 			 *  file.  If registration did not fail,
-			 *  (status = 0 or DSP_EDCDNOAUTOREGISTER)
+			 *  (status = 0 or -EACCES)
 			 *  save the name of the COFF file for
 			 *  de-registration in the future. */
 			status =
 			    dcd_auto_register(hdcd_handle,
 					      (char *)user_args[0]);
-			if (status == DSP_EDCDNOAUTOREGISTER)
+			if (status == -EACCES)
 				status = 0;
 
 			if (DSP_FAILED(status)) {
-- 
1.7.1


  parent reply	other threads:[~2010-06-03  5:56 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-03  5:47 [PATCH 00/40] dspbridge: trivial error code cleanup Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 02/40] DSPBRIDGE: change DSP_SENUMCOMPLETE for ENODATA Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 03/40] DSPBRIDGE: err code replace CHNL_E_WAITTIMEOUT with ETIMEDOUT Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 04/40] DSPBRIDGE: err code replace CHNL_E_NOEOS with EPERM Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 05/40] DSPBRIDGE: err code replace CHNL_E_BUFSIZE with EINVAL Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 06/40] DSPBRIDGE: err code replace CHNL_E_NOIORPS with EIO Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 07/40] DSPBRIDGE: err code replace CHNL_E_ISR " Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 08/40] DSPBRIDGE: err code replace CHNL_E_MGREXISTS with EEXIST Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 09/40] DSPBRIDGE: err code replace CHNL_E_NOMEMMAP with EFAULT Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 10/40] DSPBRIDGE: err code replace CHNL_E_INVALIDMEMBASE with EINVAL Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 11/40] DSPBRIDGE: err code replace CHNL_E_INVALIDWORDSIZE " Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 12/40] DSPBRIDGE: err code replace CHNL_E_EOS with EPIPE Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 13/40] DSPBRIDGE: err code replace CHNL_E_NOIOC with EREMOTEIO Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 14/40] DSPBRIDGE: err code replace CHNL_E_BADCHANID with ECHRNG Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 15/40] DSPBRIDGE: err code replace CHNL_E_OUTOFSTREAMS with ENOSR Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 16/40] DSPBRIDGE: err code replace CHNL_E_MAXCHANNELS with ECHRNG Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 17/40] DSPBRIDGE: err code replace COD_E_ZLCREATEFAILED with ESPIPE Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 18/40] DSPBRIDGE: err code replace COD_E_SYMBOLNOTFOUND " Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 19/40] DSPBRIDGE: err code replace COD_E_NOSYMBOLSLOADED " Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 20/40] DSPBRIDGE: err code replace DSP_EDPMSUSPEND with EPERM Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 21/40] DSPBRIDGE: err code replace DSP_EDYNLOAD with EILSEQ Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 22/40] DSPBRIDGE: err code replace DSP_EBADSEGID with EBADR Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 23/40] DSPBRIDGE: err code replace DSP_EOVERLAYMEMORY with ENXIO Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 24/40] DSPBRIDGE: err code replace DSP_ENOSECT " Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 25/40] DSPBRIDGE: err code replace DSP_ETRANSLATE with ESRCH Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 26/40] DSPBRIDGE: err code replace DSP_ENOTFOUND with ENOENT Omar Ramirez Luna
2010-06-03  5:47 ` Omar Ramirez Luna [this message]
2010-06-03  5:47 ` [PATCH 28/40] DSPBRIDGE: err code replace DSP_EDCDLOADBASE with EACCES Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 29/40] DSPBRIDGE: err code replace DSP_EDCDGETSECT " Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 30/40] DSPBRIDGE: err code replace DSP_EDCDPARSESECT " Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 31/40] DSPBRIDGE: err code replace DSP_EDCDREADSECT " Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 32/40] DSPBRIDGE: err code replace DSP_ESYMBOL with ESPIPE Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 33/40] DSPBRIDGE: err code replace DSP_EWRONGSTATE with EBADR Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 34/40] DSPBRIDGE: err code replace DSP_EPENDING with EPIPE Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 35/40] DSPBRIDGE: err code replace DSP_ECHANGEDURINGENUM with EIDRM Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 36/40] DSPBRIDGE: remove custom errbase definitions Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 37/40] DSPBRIDGE: cleanup for duplicated error codes Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 38/40] DSPBRIDGE: removed unused error codes from comments Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 39/40] DSPBRIDGE: error code guide Omar Ramirez Luna
2010-06-11 23:00 ` [PATCH 00/40] dspbridge: trivial error code cleanup Ramirez Luna, Omar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1275544073-20418-28-git-send-email-omar.ramirez@ti.com \
    --to=omar.ramirez@ti.com \
    --cc=Hiroshi.DOYU@nokia.com \
    --cc=ameya.palande@nokia.com \
    --cc=ernesto@ti.com \
    --cc=felipe.contreras@nokia.com \
    --cc=ivan.gomez@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=x0095078@ti.com \
    --cc=x0095840@ti.com \
    --cc=x0hebbar@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).