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>
Tue, 15 Feb 2022 14:13:20 +0000 (15:13 +0100)
commit8b328f8002bcf29ef517ee4bf234e09aabec4d2e
tree48814b49448e37b26affd57d642dd398d655ab7d
parentd7c93a903f33ff35aa0e6b5a8032eb9755b00826
xhci: re-initialize the HC during resume if HCE was set

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