• Rafael J. Wysocki's avatar
    PCI PM: Put devices into low power states during late suspend (rev. 2) · 46939f8b
    Rafael J. Wysocki authored
    Once we have allowed timer interrupts to be enabled during the late
    phase of suspending devices, we are now able to use the generic
    pci_set_power_state() to put PCI devices into low power states at
    that time.  We can also use some related platform callbacks, like the
    ones preparing devices for wake-up, during the late suspend.
    
    Doing this will allow us to avoid the race condition where a device
    using shared interrupts is put into a low power state with interrupts
    enabled and then an interrupt (for another device) comes in and
    confuses its driver.  At the same time, devices that don't support
    the native PCI PM or that require some additional, platform-specific
    operations to be carried out to put them into low power states will
    be handled as appropriate.
    Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
    Acked-by: default avatarIngo Molnar <mingo@elte.hu>
    Acked-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
    46939f8b
pci-driver.c 24.1 KB