]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xhci: don't try to reset the host if it is unaccessible
authorMathias Nyman <mathias.nyman@linux.intel.com>
Fri, 11 Nov 2016 13:13:12 +0000 (15:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Nov 2016 09:18:21 +0000 (10:18 +0100)
commitc11ae038d62bf07231be7b813435e5067c978ddc
tree45509002a08622b466fad822c26a0e620505d61e
parent99154fd3aa9ce49f0fb842f2b07f174ae7345b64
xhci: don't try to reset the host if it is unaccessible

There is no point in trying to reset the host controller by writing
to its registers if host is removed and registers just return 0xffffffff

bail out and return -ENODEV instead

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci.c