]> git.karo-electronics.de Git - karo-tx-linux.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>
Wed, 12 Oct 2011 20:59:33 +0000 (22:59 +0200)
commita802e24910682918022871a9f5eb5a545e50e7fa
treefa6efbb106f36738032bd035e10f54936d3b683d
parentc041d3c749b0e63fd9e7e9b700c29861fe8a7567
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