patch "xhci: give command abortion one more chance before killing xhci" added to usb-linus
Subsystems (3)
This is a note to let you know that I've just added the patch titled
xhci: give command abortion one more chance before killing xhci
to my usb git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
in the usb-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
Quoted 1 line
From
a6809ffd1687b3a8c192960e69add559b9d32649Mon Sep 17 00:00:00 2001
From: Mathias Nyman <[email protected]>
Date: Mon, 21 Sep 2015 17:46:10 +0300
Subject: xhci: give command abortion one more chance before killing xhci
We want to give the command abortion an additional try to stop the command ring before we completely hose xhci.
--- drivers/usb/host/xhci-ring.c | 9 +++++++++ 1 file changed, 9 insertions(+)
drivers/usb/host/xhci-ring.c +9 -0
@@ -302,6 +302,15 @@ static int xhci_abort_cmd_ring(struct xhci_hcd *xhci) ret =xhci_handshake (&xhci->op_regs->cmd_ring,CMD_RING_RUNNING ,0 ,5 *1000 *1000 );if (ret <0 ) { +/* we are about to kill xhci, give it one more chance */ +xhci_write_64 (xhci, temp_64 |CMD_RING_ABORT , + &xhci->op_regs->cmd_ring); +udelay (1000 ); + ret =xhci_handshake (&xhci->op_regs->cmd_ring, +CMD_RING_RUNNING ,0 ,3 *1000 *1000 ); +if (ret ==0 ) +return 0 ; +xhci_err (xhci,"Stopped the command ring failed, " "maybe the host is dead\n" ); xhci->xhc_state |=XHCI_STATE_DYING ;
Signature · 1 line
2.5.3