Skip to content

Commit bd5e8c5

Browse files
Roger Quadrosgregkh
Roger Quadros
authored andcommitted
usb: xhci: Clear XHCI_STATE_DYING on start
commit e5bfeab upstream. For whatever reason if XHCI died in the previous instant then it will never recover on the next xhci_start unless we clear the DYING flag. Signed-off-by: Roger Quadros <[email protected]> Signed-off-by: Mathias Nyman <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 761ccab commit bd5e8c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/usb/host/xhci.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ static int xhci_start(struct xhci_hcd *xhci)
146146
"waited %u microseconds.\n",
147147
XHCI_MAX_HALT_USEC);
148148
if (!ret)
149-
xhci->xhc_state &= ~XHCI_STATE_HALTED;
149+
xhci->xhc_state &= ~(XHCI_STATE_HALTED | XHCI_STATE_DYING);
150+
150151
return ret;
151152
}
152153

0 commit comments

Comments
 (0)