]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xhci: dbc: enable back DbC in resume if it was enabled before suspend
authorMathias Nyman <mathias.nyman@linux.intel.com>
Mon, 13 Oct 2025 22:55:42 +0000 (01:55 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Oct 2025 07:59:06 +0000 (09:59 +0200)
commit2bbd38fcd29670e46c0fdb9cd0e90507a8a1bf6a
tree496f397603fece417a087114655d71d1c4614153
parentf3d12ec847b945d5d65846c85f062d07d5e73164
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: dfba2174dc42 ("usb: xhci: Add DbC support in xHCI driver")
Tested-by: Ɓukasz Bartosik <ukaszb@chromium.org>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-dbgcap.c