Skip to content
  • David Brownell's avatar
    [PATCH] USB: EHCI updates split init/reinit logic for resume · 18807521
    David Brownell authored
    
    
    Moving the PCI-specific parts of the EHCI driver into their own file
    created a few issues ... notably on resume paths which (like swsusp)
    require re-initializing the controller.  This patch:
    
     - Splits the EHCI startup code into run-once HCD setup code and
       separate "init the hardware" reinit code.  (That reinit code is
       a superset of the "early usb handoff" code.)
    
     - Then it makes the PCI init code run both, and the resume code only
       run the reinit code.
    
     - It also removes needless pci wrappers around EHCI start/stop methods.
    
     - Removes a byteswap issue that would be seen on big-endian hardware.
    
    The HCD glue still doesn't actually provide a good way to do all this
    run-one init stuff in one place though.
    
    Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    18807521