USB: xhci: Re-purpose xhci_quiesce().
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 27 Oct 2009 17:56:33 +0000 (10:56 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 19:55:17 +0000 (11:55 -0800)
commit4f0f0baef017dfd5d62b749716ab980a825e1071
tree74f84a4ddd6ea41c5d359a4ecf1f25fa0a2c7d4d
parent678539cfaa090093a9aef185f545f6b17acc445c
USB: xhci: Re-purpose xhci_quiesce().

xhci_quiesce() is basically a no-op right now.  It's only called if
HC_IS_RUNNING() is true, and the body of the function consists of a
BUG_ON if HC_IS_RUNNING() is false.  For the new xHCI watchdog timer, we
need a new function that clears the xHCI running bit in the command
register, but doesn't wait for the halt status to show up in the status
register.  Re-purpose xhci_quiesce() to do that.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/xhci-hcd.c
drivers/usb/host/xhci.h