From: Alan Stern Date: Wed, 10 Oct 2007 20:27:07 +0000 (-0400) Subject: USB: mutual exclusion for EHCI init and port resets X-Git-Tag: v2.6.24-rc1~1395^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32fe01985aa2cb2562f6fc171e526e279abe10db;p=pandora-kernel.git USB: mutual exclusion for EHCI init and port resets This patch (as999) fixes a problem that sometimes shows up when host controller driver modules are loaded in the wrong order. If ehci-hcd happens to initialize an EHCI controller while the companion OHCI or UHCI controller is in the middle of a port reset, the reset can fail and the companion may get very confused. The patch adds an rw-semaphore and uses it to keep EHCI initialization and port resets mutually exclusive. Signed-off-by: Alan Stern Acked-by: David Brownell Cc: David Miller Cc: Dely L Sy Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed