|
@@ -795,8 +795,8 @@ int xhci_suspend(struct xhci_hcd *xhci)
|
|
|
command = xhci_readl(xhci, &xhci->op_regs->command);
|
|
|
command |= CMD_CSS;
|
|
|
xhci_writel(xhci, command, &xhci->op_regs->command);
|
|
|
- if (handshake(xhci, &xhci->op_regs->status, STS_SAVE, 0, 10*100)) {
|
|
|
- xhci_warn(xhci, "WARN: xHC CMD_CSS timeout\n");
|
|
|
+ if (handshake(xhci, &xhci->op_regs->status, STS_SAVE, 0, 10 * 1000)) {
|
|
|
+ xhci_warn(xhci, "WARN: xHC save state timeout\n");
|
|
|
spin_unlock_irq(&xhci->lock);
|
|
|
return -ETIMEDOUT;
|
|
|
}
|
|
@@ -848,8 +848,8 @@ int xhci_resume(struct xhci_hcd *xhci, bool hibernated)
|
|
|
command |= CMD_CRS;
|
|
|
xhci_writel(xhci, command, &xhci->op_regs->command);
|
|
|
if (handshake(xhci, &xhci->op_regs->status,
|
|
|
- STS_RESTORE, 0, 10*100)) {
|
|
|
- xhci_dbg(xhci, "WARN: xHC CMD_CSS timeout\n");
|
|
|
+ STS_RESTORE, 0, 10 * 1000)) {
|
|
|
+ xhci_warn(xhci, "WARN: xHC restore state timeout\n");
|
|
|
spin_unlock_irq(&xhci->lock);
|
|
|
return -ETIMEDOUT;
|
|
|
}
|