If the target state is RET for suspend, the driver
disables wdt3; this is never enabled again on resume,
nor the state updated to running, fixing that.

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

diff --git a/drivers/staging/tidspbridge/core/tiomap3430_pwr.c 
b/drivers/staging/tidspbridge/core/tiomap3430_pwr.c
index d5245a3..69cc2c4 100644
--- a/drivers/staging/tidspbridge/core/tiomap3430_pwr.c
+++ b/drivers/staging/tidspbridge/core/tiomap3430_pwr.c
@@ -274,6 +274,10 @@ int wake_dsp(struct bridge_dev_context *dev_context, void 
*pargs)
                /* Restart the peripheral clocks */
                dsp_clock_enable_all(dev_context->dsp_per_clks);
 
+               dsp_wdt_enable(true);
+
+               dev_context->brd_state = BRD_RUNNING;
+
                break;
        case BRD_HIBERNATION:
        case BRD_DSP_HIBERNATION:
-- 
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