diff options
author | Roger Quadros <rogerq@ti.com> | 2015-09-21 17:46:13 +0300 |
---|---|---|
committer | Zefan Li <lizefan@huawei.com> | 2016-04-27 13:55:23 +0300 |
commit | fa8600fa40e5ca152b8ece604579535b4296145f (patch) | |
tree | 6d5d617ec638d9b56980334025952e327b5354ae /drivers/usb/host | |
parent | 63a2bddd9e9d605149860e819cca40f79835eeed (diff) | |
download | linux-fa8600fa40e5ca152b8ece604579535b4296145f.tar.xz |
usb: xhci: Clear XHCI_STATE_DYING on start
commit e5bfeab0ad515b4f6df39fe716603e9dc6d3dfd0 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 <rogerq@ti.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Zefan Li <lizefan@huawei.com>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/xhci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index fd52e1efd6ca..88be7a51df52 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -141,7 +141,8 @@ static int xhci_start(struct xhci_hcd *xhci) "waited %u microseconds.\n", XHCI_MAX_HALT_USEC); if (!ret) - xhci->xhc_state &= ~XHCI_STATE_HALTED; + xhci->xhc_state &= ~(XHCI_STATE_HALTED | XHCI_STATE_DYING); + return ret; } |