]> git.baikalelectronics.ru Git - kernel.git/commit
PM / Runtime: Handle .runtime_suspend() failure correctly
authorMing Lei <ming.lei@canonical.com>
Wed, 12 Oct 2011 20:59:33 +0000 (22:59 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Sun, 16 Oct 2011 21:25:23 +0000 (23:25 +0200)
commitc621d0044437e7aa6e40be879132b204098f3e66
tree04af09cacf24cde80659c810c66bc89c6fcf84c9
parent298ef4a99c574ec4a71c3d7b0f9c087fb4996250
PM / Runtime: Handle .runtime_suspend() failure correctly

If .runtime_suspend() returns -EAGAIN or -EBUSY, the device should
still be in ACTIVE state, so it is not necessary to send an idle
notification to its parent.  If .runtime_suspend() returns other
fatal failure, it doesn't make sense to send idle notification to
its parent.

Skip parent idle notification when failure is returned from
.runtime_suspend() and update comments in rpm_suspend() to reflect
that change.

[rjw: Modified the subject and changelog slightly.]

Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/runtime.c