• David Brownell's avatar
    [PATCH] USB: usb PM updates, PCI glue (1/4) · 9105f994
    David Brownell authored
    Updates the PCI glue for HCDs:
    
     - There's now just one code path to suspend. CONFIG_USB_SUSPEND mostly
       means bypassing the "idle the root hub" part, and it uses the same
       D1/D2 logic when necessary.
    
     - Though usbcore is moving away from device->power.power_state, it still
       needs to be initialized correctly (else pmcore can get confused).
    
     - Disable the device on init path failures.
    
    The first two address real bugs, the third was just something I noticed
    while fixing the second.
    Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
    9105f994
hcd-pci.c 11.1 KB