浏览代码

usb: xhci: Clear XHCI_STATE_DYING on start

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.

Cc: <stable@vger.kernel.org>
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Roger Quadros 10 年之前
父节点
当前提交
e5bfeab0ad
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      drivers/usb/host/xhci.c

+ 2 - 1
drivers/usb/host/xhci.c

@@ -146,7 +146,8 @@ static int xhci_start(struct xhci_hcd *xhci)
 				"waited %u microseconds.\n",
 				"waited %u microseconds.\n",
 				XHCI_MAX_HALT_USEC);
 				XHCI_MAX_HALT_USEC);
 	if (!ret)
 	if (!ret)
-		xhci->xhc_state &= ~XHCI_STATE_HALTED;
+		xhci->xhc_state &= ~(XHCI_STATE_HALTED | XHCI_STATE_DYING);
+
 	return ret;
 	return ret;
 }
 }