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:33:59 +0000 (11:33 +0100)
commit06bbba3bc5df4e0fe9e89e8fa0ca8e51241a2937
treed0f6f85e4cdb2298cda465514c4a1dd312a5385d
parent3594650c3ec1dbf4fbea5860aa5822150ca60d9d
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