From: Alan Stern Date: Fri, 8 Jan 2010 16:18:20 +0000 (-0500) Subject: USB: EHCI & UHCI: fix race between root-hub suspend and port resume X-Git-Tag: v2.6.27.45~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fbebe26d7a5eed6c1900bf2142b68af7df38462;p=pandora-kernel.git USB: EHCI & UHCI: fix race between root-hub suspend and port resume commit cec3a53c7fe794237b582e8e77fc0e48465e65ee upstream. This patch (as1321) fixes a problem with EHCI and UHCI root-hub suspends: If the suspend occurs while a port is trying to resume, the resume doesn't finish and simply gets lost. When remote wakeup is enabled, this is undesirable behavior. The patch checks first to see if any port resumes are in progress, and if they are then it fails the root-hub suspend with -EBUSY. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed