|
@@ -113,12 +113,12 @@ int xhci_halt(struct xhci_hcd *xhci)
|
|
|
|
|
|
ret = xhci_handshake(&xhci->op_regs->status,
|
|
ret = xhci_handshake(&xhci->op_regs->status,
|
|
STS_HALT, STS_HALT, XHCI_MAX_HALT_USEC);
|
|
STS_HALT, STS_HALT, XHCI_MAX_HALT_USEC);
|
|
- if (!ret) {
|
|
|
|
- xhci->xhc_state |= XHCI_STATE_HALTED;
|
|
|
|
- xhci->cmd_ring_state = CMD_RING_STATE_STOPPED;
|
|
|
|
- } else
|
|
|
|
- xhci_warn(xhci, "Host not halted after %u microseconds.\n",
|
|
|
|
- XHCI_MAX_HALT_USEC);
|
|
|
|
|
|
+ if (ret) {
|
|
|
|
+ xhci_warn(xhci, "Host halt failed, %d\n", ret);
|
|
|
|
+ return ret;
|
|
|
|
+ }
|
|
|
|
+ xhci->xhc_state |= XHCI_STATE_HALTED;
|
|
|
|
+ xhci->cmd_ring_state = CMD_RING_STATE_STOPPED;
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|