From patchwork Thu Mar 25 20:06:44 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hebbar, Shivananda" X-Patchwork-Id: 88323 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 o2PK6Q3a021290 for ; Thu, 25 Mar 2010 20:06:55 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754697Ab0CYUGy (ORCPT ); Thu, 25 Mar 2010 16:06:54 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:47153 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754667Ab0CYUGx convert rfc822-to-8bit (ORCPT ); Thu, 25 Mar 2010 16:06:53 -0400 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id o2PK6lSw032262 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 25 Mar 2010 15:06:49 -0500 Received: from dbde71.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id o2PK6krM027641; Fri, 26 Mar 2010 01:36:46 +0530 (IST) Received: from dbde02.ent.ti.com ([172.24.170.145]) by dbde71.ent.ti.com ([172.24.170.149]) with mapi; Fri, 26 Mar 2010 01:36:46 +0530 From: "Hebbar, Shivananda" To: "linux-omap@vger.kernel.org" CC: "Ramirez Luna, Omar" , Felipe Contreras , "Menon, Nishanth" , "Palande Ameya (Nokia-D/Helsinki)" Date: Fri, 26 Mar 2010 01:36:44 +0530 Subject: [RFC][PATCH 11/19] DSPBRIDGE: Cleanup custom error code (DSP_ERANGE -> EDOM) Thread-Topic: [RFC][PATCH 11/19] DSPBRIDGE: Cleanup custom error code (DSP_ERANGE -> EDOM) Thread-Index: AcrMVrELBtinwqfMQHet+S59ivywPA== Message-ID: <19F8576C6E063C45BE387C64729E7394044DEBEB27@dbde02.ent.ti.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 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, 25 Mar 2010 20:06:55 +0000 (UTC) diff --git a/arch/arm/plat-omap/include/dspbridge/errbase.h b/arch/arm/plat-omap/include/dspbridge/errbase.h index da2900c..1cc0101 100644 --- a/arch/arm/plat-omap/include/dspbridge/errbase.h +++ b/arch/arm/plat-omap/include/dspbridge/errbase.h @@ -99,9 +99,6 @@ /* I/O is currently pending. */ #define DSP_EPENDING (DSP_EBASE + 0x11) -/* A parameter is specified outside its valid range. */ -#define DSP_ERANGE (DSP_EBASE + 0x13) - /* An invalid size parameter was specified. */ #define DSP_ESIZE (DSP_EBASE + 0x14) diff --git a/arch/arm/plat-omap/include/dspbridge/node.h b/arch/arm/plat-omap/include/dspbridge/node.h index 77af26d..e2c5c94 100644 --- a/arch/arm/plat-omap/include/dspbridge/node.h +++ b/arch/arm/plat-omap/include/dspbridge/node.h @@ -42,7 +42,7 @@ * ENOMEM: Insufficient memory on GPP. * DSP_EUUID: Node UUID has not been registered. * DSP_ESYMBOL: iAlg functions not found for a DAIS node. - * DSP_ERANGE: attr_in != NULL and attr_in->prio out of + * EDOM: attr_in != NULL and attr_in->prio out of * range. * DSP_EFAIL: A failure occured, unable to allocate node. * DSP_EWRONGSTATE: Proccessor is not in the running state. @@ -99,7 +99,7 @@ extern dsp_status node_alloc_msg_buf(struct node_object *hnode, * Returns: * DSP_SOK: Success. * EFAULT: Invalid hnode. - * DSP_ERANGE: prio is out of range. + * EDOM: prio is out of range. * EPERM: The specified node is not a task node. * DSP_EWRONGSTATE: Node is not in the NODE_ALLOCATED, NODE_PAUSED, * or NODE_RUNNING state. diff --git a/arch/arm/plat-omap/include/dspbridge/strm.h b/arch/arm/plat-omap/include/dspbridge/strm.h index d0026c7..609a6e7 100644 --- a/arch/arm/plat-omap/include/dspbridge/strm.h +++ b/arch/arm/plat-omap/include/dspbridge/strm.h @@ -363,7 +363,7 @@ extern dsp_status strm_register_notify(struct strm_object *hStrm, * utimeout: Timeout value (milliseconds). * Returns: * DSP_SOK: Success. - * DSP_ERANGE: nStrms out of range. + * EDOM: nStrms out of range. * EFAULT: Invalid stream handle in array. * DSP_ETIMEOUT: A timeout occurred before a stream became ready. diff --git a/drivers/dsp/bridge/rmgr/node.c b/drivers/dsp/bridge/rmgr/node.c index 49c6d17..6bc0e2e 100644 --- a/drivers/dsp/bridge/rmgr/node.c +++ b/drivers/dsp/bridge/rmgr/node.c @@ -374,7 +374,7 @@ dsp_status node_allocate(struct proc_object *hprocessor, /* Check if attr_in->prio is within range */ if (attr_in->prio < hnode_mgr->min_pri || attr_in->prio > hnode_mgr->max_pri) - status = DSP_ERANGE; + status = EDOM; } } /* Allocate node object and fill in */ @@ -785,7 +785,7 @@ dsp_status node_change_priority(struct node_object *hnode, s32 prio) if (node_type != NODE_TASK && node_type != NODE_DAISSOCKET) status = EPERM; else if (prio < hnode_mgr->min_pri || prio > hnode_mgr->max_pri) - status = DSP_ERANGE; + status = EDOM; } if (DSP_FAILED(status)) goto func_end;