• Ming Lei's avatar
    PM / Runtime: Handle .runtime_suspend() failure correctly · 857b36c7
    Ming Lei authored
    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: default avatarMing Lei <ming.lei@canonical.com>
    Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
    857b36c7
runtime.c 34.9 KB