public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] DSPBRIDGE: Add BRD_SLEEP_TRANSITION in PROC_GetState
@ 2010-02-09 19:19 Ramos Falcon, Ernesto
  2010-02-16 23:48 ` Omar Ramirez Luna
  0 siblings, 1 reply; 2+ messages in thread
From: Ramos Falcon, Ernesto @ 2010-02-09 19:19 UTC (permalink / raw)
  To: linux-omap@vger.kernel.org
  Cc: Ameya Palande, Contreras Felipe (Nokia-D/Helsinki),
	Doyu Hiroshi (Nokia-D/Helsinki)

>From 40d5863c3d3f4091761fef8bff581d2a7b1f32fa Mon Sep 17 00:00:00 2001
From: Ernesto Ramos <ernesto@ti.com>
Date: Tue, 2 Feb 2010 20:30:19 -0600
Subject: [PATCH] DSPBRIDGE: Add BRD_SLEEP_TRANSITION in PROC_GetState.

When PROC_GetState checks for BRD status it is not taking into account
the state BRD_SLEEP_TRANSITION and it is returning DSP_EFAIL when this
happens, which is wrong. This fix adds this check to return ProcStatus as
PROC_RUNNING and status DSP_SOK when this happens.

Signed-off-by: Ernesto Ramos <ernesto@ti.com>
---
 drivers/dsp/bridge/rmgr/proc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/dsp/bridge/rmgr/proc.c b/drivers/dsp/bridge/rmgr/proc.c
index a1d06dc..553c9a7 100644
--- a/drivers/dsp/bridge/rmgr/proc.c
+++ b/drivers/dsp/bridge/rmgr/proc.c
@@ -802,6 +802,7 @@ DSP_STATUS PROC_GetState(DSP_HPROCESSOR hProcessor,
 		case BRD_STOPPED:
 			pProcStatus->iState = PROC_STOPPED;
 			break;
+		case BRD_SLEEP_TRANSITION:
 		case BRD_DSP_HIBERNATION:
 			/* Fall through */
 		case BRD_RUNNING:
-- 
1.5.4.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] DSPBRIDGE: Add BRD_SLEEP_TRANSITION in PROC_GetState
  2010-02-09 19:19 [PATCH] DSPBRIDGE: Add BRD_SLEEP_TRANSITION in PROC_GetState Ramos Falcon, Ernesto
@ 2010-02-16 23:48 ` Omar Ramirez Luna
  0 siblings, 0 replies; 2+ messages in thread
From: Omar Ramirez Luna @ 2010-02-16 23:48 UTC (permalink / raw)
  To: Ramos Falcon, Ernesto
  Cc: linux-omap@vger.kernel.org, Ameya Palande,
	Contreras Felipe (Nokia-D/Helsinki),
	Doyu Hiroshi (Nokia-D/Helsinki)

On 2/9/2010 1:19 PM, Ramos Falcon, Ernesto wrote:
>  From 40d5863c3d3f4091761fef8bff581d2a7b1f32fa Mon Sep 17 00:00:00 2001
> From: Ernesto Ramos<ernesto@ti.com>
> Date: Tue, 2 Feb 2010 20:30:19 -0600
> Subject: [PATCH] DSPBRIDGE: Add BRD_SLEEP_TRANSITION in PROC_GetState.
>
> When PROC_GetState checks for BRD status it is not taking into account
> the state BRD_SLEEP_TRANSITION and it is returning DSP_EFAIL when this
> happens, which is wrong. This fix adds this check to return ProcStatus as
> PROC_RUNNING and status DSP_SOK when this happens.
>
> Signed-off-by: Ernesto Ramos<ernesto@ti.com>

Acked-by: Omar Ramirez Luna <omar.ramirez@ti.com>

Pushed to dspbridge

- omar

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-16 23:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-09 19:19 [PATCH] DSPBRIDGE: Add BRD_SLEEP_TRANSITION in PROC_GetState Ramos Falcon, Ernesto
2010-02-16 23:48 ` Omar Ramirez Luna

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox