From: Alan Stern Date: Mon, 20 Nov 2006 16:14:30 +0000 (-0500) Subject: USB hub: simplify remote-wakeup handling X-Git-Tag: v2.6.20-rc1~34^2~40^2~472^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d25450c68767481f7c9cc4823a6da8235db40be6;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed