Commit 315d114c authored by Mathias Nyman's avatar Mathias Nyman Committed by Todd Kjos
Browse files

UPSTREAM: xhci: dbc: enable back DbC in resume if it was enabled before suspend



DbC is currently only enabled back if it's in configured state during
suspend.

If system is suspended after DbC is enabled, but before the device is
properly enumerated by the host, then DbC would not be enabled back in
resume.

Always enable DbC back in resume if it's suspended in enabled,
connected, or configured state

Cc: stable <stable@kernel.org>
Fixes: dfba2174 ("usb: xhci: Add DbC support in xHCI driver")
Tested-by: default avatarŁukasz Bartosik <ukaszb@chromium.org>
Change-Id: I8541d2bcff82ed843298ef7867285b051d632bb1
Signed-off-by: default avatarMathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 2bbd38fc)

Bug: 424155152
Change-Id: I0888ec4d631fdebaa658157357d63a9abf177fc7
Signed-off-by: default avatarŁukasz Bartosik <ukaszb@google.com>
parent 8bbbd204
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment