• Aaron Lu's avatar
    [libata] PM code cleanup for ata port · f5e6d0d0
    Aaron Lu authored
    For system freeze, if the port is already runtime suspended, leave it
    alone and just return. The port will be resumed on thaw before it will
    be used.
    
    And since we will call get_noresume for every device during prepare
    phase, and the port is resumed during thaw phase, it can't be in runtime
    suspended state during the poweroff phase. So remove the
    runtime_suspended check in poweroff callback.
    
    And for all suspend(freeze/suspend/poweroff/etc.), there is no need to
    touch the device, so set no_autopsy and no_recovery for them all.
    Signed-off-by: default avatarAaron Lu <aaron.lu@intel.com>
    Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
    f5e6d0d0
libata-core.c 176 KB