• Alan Stern's avatar
    PM: Use pm_runtime_put_sync in system resume · aa0baaef
    Alan Stern authored
    This patch (as1317) fixes a bug in the PM core.  When a device is
    resumed following a system sleep, the core decrements the device's
    runtime PM usage counter but doesn't issue an idle notification if the
    counter reaches 0.  This could prevent an otherwise unused device from
    being runtime-suspended again after the system sleep.
    
    The fix is to call pm_runtime_put_sync() instead of
    pm_runtime_put_noidle().
    Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
    Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
    aa0baaef
main.c 22.8 KB