xhci: clear usb2 resume related variables in one place.
authorMathias Nyman <mathias.nyman@linux.intel.com>
Thu, 2 Feb 2023 15:05:04 +0000 (17:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Feb 2023 15:44:42 +0000 (16:44 +0100)
commit0e6275452ce26d7ff274a5c1b15ed581a26f7986
tree67c6126c164fa45045698ff6300666c8cf8114ec
parenta909d629ae77b97b6288bc3cfe68560454bf79c6
xhci: clear usb2 resume related variables in one place.

Initially resume related USB2 variables were cleared once port
successfully resumed to U0. Later code was added to clean up
stale resume variables in case of port failed to resume to U0.

Clear the variables in one place after port is no longer resuming
or in suspended U3 state.

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20230202150505.618915-11-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-hub.c