Skip to content

Commit

Permalink
xhci: xhci_handshake declaration fixup
Browse files Browse the repository at this point in the history
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) <[email protected]>
  • Loading branch information
javashin committed Jun 16, 2022
1 parent 8c0d3ff commit 121acc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/host/xhci-ring.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 121acc7

Please sign in to comment.