Skip to content
  • Rafael J. Wysocki's avatar
    PM: Allow devices to be removed during late suspend and early resume · d08a5ace
    Rafael J. Wysocki authored
    
    
    Holding dpm_list_mtx across late suspend and early resume of devices
    is problematic for the PCMCIA subsystem and doesn't allow device
    objects to be removed by late suspend and early resume driver
    callbacks.  This appears to be overly restrictive, as drivers are
    generally allowed to remove device objects in other phases of suspend
    and resume.  Therefore rework dpm_{suspend|resume}_noirq() so that
    they don't have to hold dpm_list_mtx all the time.
    
    Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
    d08a5ace