xhci: re-initialize the HC during resume if HCE was set
authorPuma Hsu <pumahsu@google.com>
Tue, 15 Feb 2022 12:33:19 +0000 (14:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Mar 2022 10:48:06 +0000 (11:48 +0100)
commitc8b38e557414d9b6cb7c69c8d0ce25b09336944f
tree9ee4e416d932d754f58029fb3850de49aef0cb89
parent88f69c64443fd305cbe7511a2fad900b59d6f0bf
xhci: re-initialize the HC during resume if HCE was set

commit 8b328f8002bcf29ef517ee4bf234e09aabec4d2e upstream.

When HCE(Host Controller Error) is set, it means an internal
error condition has been detected. Software needs to re-initialize
the HC, so add this check in xhci resume.

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