• Alex Elder's avatar
    net: ipa: use autosuspend · 1aac309d
    Alex Elder authored
    Use runtime power management autosuspend.
    
    Up until this point, we only suspended the IPA hardware for system
    suspend; now we'll suspend it aggressively using runtime power
    management, setting the initial autosuspend delay to half a second
    of inactivity.
    
    Replace pm_runtime_put() calls with pm_runtime_put_autosuspend(),
    call pm_runtime_mark_last_busy() before each of those.  In places
    where we're shutting things down, or decrementing power references
    for errors, use pm_runtime_put_noidle() instead.
    
    Finally, remove ipa_runtime_idle(), so the ->runtime_suspend
    callback will occur if idle.
    Signed-off-by: default avatarAlex Elder <elder@linaro.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    1aac309d
ipa_smp2p.c 9.42 KB