[PATCH V2] poweroff: fix bug in orderly_poweroff

2012-09-18 Thread hongfeng
orderly_poweroff is trying to poweroff platform by two steps: step 1: Call userspace application to poweroff step 2: If userspace poweroff fail, then do a force power off if force param is set. The bug here is, step 1 is always successful with param UMH_NO_WAIT, should change to UMH_WAIT_EXEC whi

[PATCH V2] poweroff: fix bug in orderly_poweroff

2012-09-18 Thread hongfeng
orderly_poweroff is trying to poweroff platform by two steps: step 1: Call userspace application to poweroff step 2: If userspace poweroff fail, then do a force power off if force param is set. The bug here is, step 1 is always successful with param UMH_NO_WAIT, should change to UMH_WAIT_EXEC whi

[PATCH] poweroff: fix bug in orderly_poweroff

2012-09-18 Thread hongfeng
orderly_poweroff is trying to poweroff platform by two steps: step 1: Call userspace application to poweroff step 2: If userspace poweroff fail, then do a force power off if force param is set. The bug here is, step 1 is always successful with param UMH_NO_WAIT, should change to UMH_WAIT_PROC whi

[PATCH] PM / Sleep: use resume event when call dpm_resume_early

2012-09-18 Thread hongfeng
When dpm_suspend_noirq fail, state is PMSG_SUSPEND, should change to PMSG_RESUME when dpm_resume_early is called Change-Id: If815218d4934b4648e330235ab1ae26e713284bd Signed-off-by: Feng Hong Signed-off-by: Raul Xiong Signed-off-by: Neil Zhang --- drivers/base/power/main.c |2 +- 1 files ch