From: Alan Stern Date: Mon, 16 Mar 2009 18:21:56 +0000 (-0400) Subject: USB: EHCI: expedite unlinks when the root hub is suspended X-Git-Tag: v2.6.27.21~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7f46712bb0981ed339f9b7221405f3fbd65dddd;p=pandora-kernel.git USB: EHCI: expedite unlinks when the root hub is suspended commit 391016f6e2fe3b9979b4c6880a76e5e434d6947c upstream. This patch (as1225) fixes a bug in ehci-hcd. The condition for whether unlinked QHs can become IDLE should not be that the controller is halted, but rather that the controller isn't running. In other words when the root hub is suspended, the hardware doesn't own any QHs. This fixes a problem that can show up during hibernation: If a QH is only partially unlinked when the root hub is frozen, then when the root hub is thawed the QH won't be in the IDLE state. As a result it can't be used properly for new URB submissions. Signed-off-by: Alan Stern Reported-by: Brandon Philips Tested-by: Brandon Philips Acked-by: David Brownell Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed