>From 1a51cb80cf581a0aa228dd82aaf45f4e250d0d59 Mon Sep 17 00:00:00 2001 From: Zhang Rui Date: Mon, 18 Aug 2014 09:09:07 +0800 Subject: [PATCH] 80911: Debug patch to skip _WAK in platform pm_test mode --- kernel/power/suspend.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c index 6dadb25..402f0ca 100644 --- a/kernel/power/suspend.c +++ b/kernel/power/suspend.c @@ -270,11 +270,12 @@ static int suspend_enter(suspend_state_t state, bool *wakeup) printk(KERN_ERR "PM: Some devices failed to power down\n"); goto Platform_finish; } - error = platform_suspend_prepare_late(state); - if (error) - goto Platform_wake; if (suspend_test(TEST_PLATFORM)) + goto Platform_test; + + error = platform_suspend_prepare_late(state); + if (error) goto Platform_wake; /* @@ -319,8 +320,8 @@ static int suspend_enter(suspend_state_t state, bool *wakeup) Platform_wake: platform_suspend_wake(state); + Platform_test: dpm_resume_start(PMSG_RESUME); - Platform_finish: platform_suspend_finish(state); return error; -- 1.8.3.2