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:42:55 +0000 (11:42 +0100)
commit0b0a229da1f22f04b356b8ede564d95e046137b4
tree32d13d4278636917226b6e3ae69e7d477c08beb5
parent328faee6d4099de2e8d9dc18ded9ea31f62b5b5f
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