• David Brownell's avatar
    [PATCH] usb resume fixes · c6053ecf
    David Brownell authored
    This has a variety of updates to the shared suspend/resume code for
    PCI based USB host controllers.
    
        - Cope with pm_message_t replacing the target system state.
          This is actually a loss of functionality; PCI D1 and D2
          states will no longer be used, and it's no longer knowable
          that D3cold is on the way so power will be lost.
    
        - Most importantly, some of the resume paths are reworked and
          cleaned up.  They're now an exact mirror of suspend paths,
          and more care is taken to ensure the hardware is reactivated
          before the hardware re-enables interrupts.
    
    Plus comment and diagnostic cleanups; there are some nasty cases here 
    especially combined with swsusp, now they're somewhat commented.
    Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    
    diff -puN drivers/usb/core/hcd-pci.c~usb-resume-fixes drivers/usb/core/hcd-pci.c
    c6053ecf
hcd-pci.c 10.6 KB