Skip to content
  • Alan Stern's avatar
    USB hub: simplify remote-wakeup handling · d25450c6
    Alan Stern authored
    
    
    This patch (as817) simplifies the remote-wakeup processing in the hub
    driver.  Now instead of using a specialized code path, it relies on
    the standard USB resume routines.  The hub_port_resume() function does
    an initial get_port_status() to see whether the port has already
    resumed itself (as it does when a remote-wakeup request is sent).
    This will slow down handling of other resume events slightly, but not
    enough to matter.
    
    The patch also changes the hub_port_status() routine, making it return
    an error if a short reply is received.
    
    Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    d25450c6