xhci: prevent bus suspend if a roothub port detected a over-current condition
authorMathias Nyman <mathias.nyman@linux.intel.com>
Tue, 21 Apr 2020 14:08:21 +0000 (17:08 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Apr 2020 14:27:38 +0000 (16:27 +0200)
commite9fb08d617bfae5471d902112667d0eeb9dee3c4
treea7af2b895c01fd55a85f5eba049e7198655f0a8a
parent93ceaa808e8defc67ebca1396e2f42f812a2efc0
xhci: prevent bus suspend if a roothub port detected a over-current condition

Suspending the bus and host controller while a port is in a over-current
condition may halt the host.
Also keep the roothub running if over-current is active.

Cc: <stable@vger.kernel.org>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20200421140822.28233-3-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-hub.c