• Rafael J. Wysocki's avatar
    PCI PM: Run default PM callbacks for all devices using new framework · d67e37d7
    Rafael J. Wysocki authored
    It should be quite clear that it generally makes sense to execute
    the default PM callbacks (ie. the callbacks used for handling
    suspend, hibernation and resume of PCI devices without drivers) for
    all devices.  Of course, the drivers that provide legacy PCI PM
    support (ie. the ->suspend, ->suspend_late, ->resume_early
    or ->resume hooks in the pci_driver structure), carry out these
    operations too, so we can't do it for devices with such drivers.
    Still, we can make the default PM callbacks run for devices with
    drivers using the new framework (ie. implement the pm object), since
    there are no such drivers at the moment.
    
    This also simplifies the code and makes it smaller.
    Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
    Acked-by: default avatarPavel Machek <pavel@suse.cz>
    Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
    d67e37d7
pci-driver.c 22.9 KB