]> git.baikalelectronics.ru Git - kernel.git/commit
USB: ehci: fix some ehci hangs and crashes
authorDavid Brownell <dbrownell@users.sourceforge.net>
Tue, 26 Aug 2008 21:43:46 +0000 (14:43 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Sep 2008 20:58:06 +0000 (13:58 -0700)
commit6a60d875388dc0ba44717091d2fac4840d6e0b6c
treecc14fa5709e3dcda0a7cdc150b84610ef44e1e2b
parent5d08f345b59a0858b98834af5ede7a42f8661398
USB: ehci: fix some ehci hangs and crashes

I noticed that the "Refactor "if (handshake()) state = HC_STATE_HALT"
patch from earlier this year perpetuated a potential problem:  it can
mark the controller as halted when it's still running (but not acting
as, perhaps wrongly, expected).

That caused some hangs and crashes, rather than more polite failure
modes of a truly halted controller.  This patch forces a true halt,
and emits a (previously missing) diagnostic.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ehci-hcd.c