/* Disable any IRQs and clear the run/stop bit. HC will complete any current and actively pipelined transactions, and should halt within 16 microframes of the run/stop bit being cleared. Read HC Halted bit in the status register to see when the HC is finished. XXX: shouldn't we set HC_STATE_HALT here somewhere?  */
int xhci_halt(struct xhci_hcd *xhci)
/* Disable any IRQs and clear the run/stop bit. HC will complete any current and actively pipelined transactions, and should halt within 16 microframes of the run/stop bit being cleared. Read HC Halted bit in the status register to see when the HC is finished. XXX: shouldn't we set HC_STATE_HALT here somewhere?  */
int xhci_halt(struct xhci_hcd *xhci)
{
	xhci_dbg(xhci, "
	xhci_quiesce(xhci);
	return handshake(xhci, &xhci->op_regs->status,
			STS_HALT, STS_HALT, XHCI_MAX_HALT_USEC);
}