From 121acc7c03039f1b994ebae615d08313f52e83e0 Mon Sep 17 00:00:00 2001 From: "Carlos Jimenez (JavaShin-X)" Date: Thu, 16 Jun 2022 02:23:57 -0400 Subject: [PATCH] xhci: xhci_handshake declaration fixup drivers/usb/host/xhci-ring.c:372:8: error: implicit declaration of function 'xhci_handshake_check_state' [-Werror,-Wimplicit-function-declaration] ret = xhci_handshake_check_state(xhci, &xhci->op_regs->cmd_ring, 1 error generated. Fix Build. Signed-off-by: Carlos Jimenez (JavaShin-X) --- drivers/usb/host/xhci-ring.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index 92961635809c..25b9c087529f 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c @@ -369,8 +369,8 @@ static int xhci_abort_cmd_ring(struct xhci_hcd *xhci, unsigned long flags) * In the future we should distinguish between -ENODEV and -ETIMEDOUT * and try to recover a -ETIMEDOUT with a host controller reset. */ - ret = xhci_handshake_check_state(xhci, &xhci->op_regs->cmd_ring, - CMD_RING_RUNNING, 0, 1000 * 1000); + ret = xhci_handshake(&xhci->op_regs->cmd_ring, + CMD_RING_RUNNING, 0, 5 * 1000 * 1000); if (ret < 0) { xhci_err(xhci, "Abort failed to stop command ring: %d\n", ret); xhci_halt(xhci);