Even if the board state is 'running', send a wake up message,
which should refresh self hibernation timeout (on dsp side) and
prevent it from going into sleep by itself.

Signed-off-by: Omar Ramirez Luna <[email protected]>
---
 drivers/staging/tidspbridge/core/tiomap3430_pwr.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/staging/tidspbridge/core/tiomap3430_pwr.c 
b/drivers/staging/tidspbridge/core/tiomap3430_pwr.c
index dd035af..93c441c 100644
--- a/drivers/staging/tidspbridge/core/tiomap3430_pwr.c
+++ b/drivers/staging/tidspbridge/core/tiomap3430_pwr.c
@@ -270,8 +270,9 @@ int wake_dsp(struct bridge_dev_context *dev_context, void 
*pargs)
 
        switch (dev_context->brd_state) {
        case BRD_STOPPED:
-       case BRD_RUNNING:
                return 0;
+       case BRD_RUNNING:
+               break;
        case BRD_RETENTION:
                /* Restart the peripheral clocks */
                dsp_clock_enable_all(dev_context->dsp_per_clks);
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to