]> asedeno.scripts.mit.edu Git - linux.git/commit
xhci: Do not halt the host until both HCD have disconnected their devices.
authorJoel Stanley <joel@jms.id.au>
Fri, 7 Apr 2017 14:57:00 +0000 (17:57 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 10:17:41 +0000 (12:17 +0200)
commitfe190ed0d60260e44f48d8b0b04f26a8c8898a02
tree769428594a5c00884ac842913f29e4b011e6e59d
parentb7f769ae1b126086c5ec6686734924bac1dc0a9f
xhci: Do not halt the host until both HCD have disconnected their devices.

We can't halt the host controller immediately when first HCD is removed as
it will cause problems if we have devices attached to the second (primary)
HCD, like a keyboard.

We've been carrying this in our Linux-as-a-bootloader environment for a
little while now. The machines all have the same TI TUSB73x0 part,
and when we kexec the devices don't come back until a system power cycle.

[minor adjustments, code comments and remove HALT check  -Mathias]
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci.c