]> git.baikalelectronics.ru Git - kernel.git/commit
USB hub: simplify remote-wakeup handling
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 20 Nov 2006 16:14:30 +0000 (11:14 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Dec 2006 22:25:52 +0000 (14:25 -0800)
commit29cadf1cdd344148d150ef3f6794aa9e2a8b5ee6
tree1a982e5b7ed83f1911bbc3e58a02552d765d192a
parent519781c1c133b966b27d9a02765259dac2b6f7b8
USB hub: simplify remote-wakeup handling

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: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hub.c