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 00/40] dspbridge: trivial error code cleanup
Date: Thu,  3 Jun 2010 00:47:13 -0500	[thread overview]
Message-ID: <1275544073-20418-1-git-send-email-omar.ramirez@ti.com> (raw)

These set of patches gets rid of the custom error codes still present.

Although there are a lot of patches most of them are just replacements
which were broken into single patches to avoid big patch files.

One of the patches creates a help file with the matching linux
error codes just in case the error is not descriptive enough, and
it also lists a common scenario where the error might be seen.

Finally, the last patch replaces a custom typedef (dsp_status)
with an int type as now those errors can have a negative value.

Omar Ramirez Luna (40):
  DSPBRIDGE: Remove success codes
  DSPBRIDGE: change DSP_SENUMCOMPLETE for ENODATA
  DSPBRIDGE: err code replace CHNL_E_WAITTIMEOUT with ETIMEDOUT
  DSPBRIDGE: err code replace CHNL_E_NOEOS with EPERM
  DSPBRIDGE: err code replace CHNL_E_BUFSIZE with EINVAL
  DSPBRIDGE: err code replace CHNL_E_NOIORPS with EIO
  DSPBRIDGE: err code replace CHNL_E_ISR with EIO
  DSPBRIDGE: err code replace CHNL_E_MGREXISTS with EEXIST
  DSPBRIDGE: err code replace CHNL_E_NOMEMMAP with EFAULT
  DSPBRIDGE: err code replace CHNL_E_INVALIDMEMBASE with EINVAL
  DSPBRIDGE: err code replace CHNL_E_INVALIDWORDSIZE with EINVAL
  DSPBRIDGE: err code replace CHNL_E_EOS with EPIPE
  DSPBRIDGE: err code replace CHNL_E_NOIOC with EREMOTEIO
  DSPBRIDGE: err code replace CHNL_E_BADCHANID with ECHRNG
  DSPBRIDGE: err code replace CHNL_E_OUTOFSTREAMS with ENOSR
  DSPBRIDGE: err code replace CHNL_E_MAXCHANNELS with ECHRNG
  DSPBRIDGE: err code replace COD_E_ZLCREATEFAILED with ESPIPE
  DSPBRIDGE: err code replace COD_E_SYMBOLNOTFOUND with ESPIPE
  DSPBRIDGE: err code replace COD_E_NOSYMBOLSLOADED with ESPIPE
  DSPBRIDGE: err code replace DSP_EDPMSUSPEND with EPERM
  DSPBRIDGE: err code replace DSP_EDYNLOAD with EILSEQ
  DSPBRIDGE: err code replace DSP_EBADSEGID with EBADR
  DSPBRIDGE: err code replace DSP_EOVERLAYMEMORY with ENXIO
  DSPBRIDGE: err code replace DSP_ENOSECT with ENXIO
  DSPBRIDGE: err code replace DSP_ETRANSLATE with ESRCH
  DSPBRIDGE: err code replace DSP_ENOTFOUND with ENOENT
  DSPBRIDGE: err code replace DSP_EDCDNOAUTOREGISTER with EACCES
  DSPBRIDGE: err code replace DSP_EDCDLOADBASE with EACCES
  DSPBRIDGE: err code replace DSP_EDCDGETSECT with EACCES
  DSPBRIDGE: err code replace DSP_EDCDPARSESECT with EACCES
  DSPBRIDGE: err code replace DSP_EDCDREADSECT with EACCES
  DSPBRIDGE: err code replace DSP_ESYMBOL with ESPIPE
  DSPBRIDGE: err code replace DSP_EWRONGSTATE with EBADR
  DSPBRIDGE: err code replace DSP_EPENDING with EPIPE
  DSPBRIDGE: err code replace DSP_ECHANGEDURINGENUM with EIDRM
  DSPBRIDGE: remove custom errbase definitions
  DSPBRIDGE: cleanup for duplicated error codes
  DSPBRIDGE: removed unused error codes from comments
  DSPBRIDGE: error code guide
  DSPBRIDGE: remove dsp_status typedef

 Documentation/tidspbridge/error-codes              |  157 ++++++++++++++
 arch/arm/plat-omap/include/dspbridge/_chnl_sm.h    |    2 +-
 arch/arm/plat-omap/include/dspbridge/cfg.h         |   57 +++---
 arch/arm/plat-omap/include/dspbridge/chnl.h        |   31 ++--
 arch/arm/plat-omap/include/dspbridge/clk.h         |    8 +-
 arch/arm/plat-omap/include/dspbridge/cmm.h         |   44 ++--
 arch/arm/plat-omap/include/dspbridge/cod.h         |   61 +++---
 arch/arm/plat-omap/include/dspbridge/dbdcd.h       |   73 +++----
 arch/arm/plat-omap/include/dspbridge/dbdcddef.h    |    2 +-
 arch/arm/plat-omap/include/dspbridge/dbdefs.h      |    5 +-
 arch/arm/plat-omap/include/dspbridge/dbldefs.h     |    2 +-
 arch/arm/plat-omap/include/dspbridge/dbll.h        |   14 +-
 arch/arm/plat-omap/include/dspbridge/dblldefs.h    |   47 ++---
 arch/arm/plat-omap/include/dspbridge/dev.h         |  156 ++++++--------
 arch/arm/plat-omap/include/dspbridge/disp.h        |   25 +--
 arch/arm/plat-omap/include/dspbridge/dmm.h         |   18 +-
 arch/arm/plat-omap/include/dspbridge/drv.h         |   38 ++--
 .../arm/plat-omap/include/dspbridge/dspapi-ioctl.h |    2 +-
 arch/arm/plat-omap/include/dspbridge/dspapi.h      |    8 +-
 arch/arm/plat-omap/include/dspbridge/dspchnl.h     |   24 +-
 arch/arm/plat-omap/include/dspbridge/dspdefs.h     |  226 ++++++++++----------
 arch/arm/plat-omap/include/dspbridge/dspdeh.h      |    8 +-
 arch/arm/plat-omap/include/dspbridge/dspio.h       |   10 +-
 arch/arm/plat-omap/include/dspbridge/dspmsg.h      |   10 +-
 arch/arm/plat-omap/include/dspbridge/errbase.h     |  177 ---------------
 arch/arm/plat-omap/include/dspbridge/io.h          |   19 +-
 arch/arm/plat-omap/include/dspbridge/io_sm.h       |    6 +-
 arch/arm/plat-omap/include/dspbridge/mgr.h         |   34 ++--
 arch/arm/plat-omap/include/dspbridge/msg.h         |    2 +-
 arch/arm/plat-omap/include/dspbridge/nldr.h        |   14 +-
 arch/arm/plat-omap/include/dspbridge/nldrdefs.h    |   31 ++--
 arch/arm/plat-omap/include/dspbridge/node.h        |  148 ++++++-------
 arch/arm/plat-omap/include/dspbridge/nodepriv.h    |    8 +-
 arch/arm/plat-omap/include/dspbridge/ntfy.h        |   13 +-
 arch/arm/plat-omap/include/dspbridge/proc.h        |  117 +++++------
 arch/arm/plat-omap/include/dspbridge/pwr.h         |   25 +--
 .../plat-omap/include/dspbridge/resourcecleanup.h  |   30 ++--
 arch/arm/plat-omap/include/dspbridge/rmm.h         |   10 +-
 arch/arm/plat-omap/include/dspbridge/strm.h        |   71 +++---
 arch/arm/plat-omap/include/dspbridge/sync.h        |   11 +-
 drivers/dsp/bridge/core/_tiomap.h                  |    4 +-
 drivers/dsp/bridge/core/_tiomap_pwr.h              |   14 +-
 drivers/dsp/bridge/core/chnl_sm.c                  |   83 ++++----
 drivers/dsp/bridge/core/dsp-clock.c                |    9 +-
 drivers/dsp/bridge/core/io_sm.c                    |   75 ++++----
 drivers/dsp/bridge/core/mmu_fault.c                |    1 -
 drivers/dsp/bridge/core/msg_sm.c                   |   31 ++--
 drivers/dsp/bridge/core/tiomap3430.c               |  123 ++++++------
 drivers/dsp/bridge/core/tiomap3430_pwr.c           |   45 ++--
 drivers/dsp/bridge/core/tiomap_io.c                |   21 +-
 drivers/dsp/bridge/core/tiomap_io.h                |    6 +-
 drivers/dsp/bridge/core/ue_deh.c                   |   21 +-
 drivers/dsp/bridge/core/wdt.c                      |    1 -
 drivers/dsp/bridge/pmgr/chnl.c                     |   17 +-
 drivers/dsp/bridge/pmgr/cmm.c                      |   47 ++--
 drivers/dsp/bridge/pmgr/cod.c                      |   61 +++---
 drivers/dsp/bridge/pmgr/dbll.c                     |   47 ++--
 drivers/dsp/bridge/pmgr/dev.c                      |  113 +++++-----
 drivers/dsp/bridge/pmgr/dmm.c                      |   43 ++--
 drivers/dsp/bridge/pmgr/dspapi.c                   |  101 +++++-----
 drivers/dsp/bridge/pmgr/io.c                       |   13 +-
 drivers/dsp/bridge/pmgr/msg.c                      |    5 +-
 drivers/dsp/bridge/rmgr/dbdcd.c                    |   97 +++++----
 drivers/dsp/bridge/rmgr/disp.c                     |   35 ++--
 drivers/dsp/bridge/rmgr/drv.c                      |   97 ++++-----
 drivers/dsp/bridge/rmgr/drv_interface.c            |   13 +-
 drivers/dsp/bridge/rmgr/dspdrv.c                   |    3 +-
 drivers/dsp/bridge/rmgr/mgr.c                      |   43 ++--
 drivers/dsp/bridge/rmgr/nldr.c                     |   91 ++++----
 drivers/dsp/bridge/rmgr/node.c                     |  157 +++++++-------
 drivers/dsp/bridge/rmgr/proc.c                     |  131 ++++++------
 drivers/dsp/bridge/rmgr/pwr.c                      |   16 +-
 drivers/dsp/bridge/rmgr/rmm.c                      |   11 +-
 drivers/dsp/bridge/rmgr/strm.c                     |   84 ++++----
 drivers/dsp/bridge/services/cfg.c                  |   41 ++--
 drivers/dsp/bridge/services/sync.c                 |   10 +-
 76 files changed, 1666 insertions(+), 1788 deletions(-)
 create mode 100644 Documentation/tidspbridge/error-codes
 delete mode 100644 arch/arm/plat-omap/include/dspbridge/errbase.h


             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 Omar Ramirez Luna [this message]
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 ` [PATCH 27/40] DSPBRIDGE: err code replace DSP_EDCDNOAUTOREGISTER with EACCES Omar Ramirez Luna
2010-06-03  5:47 ` [PATCH 28/40] DSPBRIDGE: err code replace DSP_EDCDLOADBASE " 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-1-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).