Skip to content
  • Rafael J. Wysocki's avatar
    PM: Allow device drivers to use dpm_wait() · f8824cee
    Rafael J. Wysocki authored
    
    
    There are some dependencies between devices (in particular, between
    EHCI USB controllers and their OHCI/UHCI siblings) which are not
    reflected by the structure of the device tree.  With synchronous
    suspend and resume these dependencies are taken into accout
    automatically, because the devices in question are always registered
    in the right order, but to meet these constraints with asynchronous
    suspend and resume the drivers of these devices will need to use
    dpm_wait() in their suspend/resume routines, so introduce a helper
    function allowing them to do that.
    
    Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
    f8824cee