]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xhci: dbc: serialize enabling and disabling dbc
authorMathias Nyman <mathias.nyman@linux.intel.com>
Wed, 3 Jun 2026 09:11:25 +0000 (12:11 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jun 2026 17:23:29 +0000 (19:23 +0200)
commit520058b73ba336380ecf7ea412263de9a7573df8
treedb9f230c06566004b9faa52a67cd4129af8ef5cd
parentdc2ff8ba9b9093eb0564407e46e71520b054fc85
xhci: dbc: serialize enabling and disabling dbc

DbC can be enabled and disabled via sysfs, serialize those
with a mutex to make sure everything is done in the correct
order.

remove xhci_do_dbc_stop() and integrate the register write and
dbc->state setting into xhci_do_stop()

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://patch.msgid.link/20260603091132.1110849-9-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-dbgcap.c
drivers/usb/host/xhci-dbgcap.h