]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xhci: dbc: decouple endpoint allocation from initialization
authorMathias Nyman <mathias.nyman@linux.intel.com>
Wed, 17 Sep 2025 14:11:00 +0000 (10:11 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Oct 2025 11:35:43 +0000 (13:35 +0200)
commit1d1732f6169037af3ec42136d5dd8f04aaddf45e
treede77f396e714623425d97a9e1d1b5275fd05afe6
parent52437ef014d6d6d32221797e90dc1ec183ed464c
xhci: dbc: decouple endpoint allocation from initialization

[ Upstream commit 220a0ffde02f962c13bc752b01aa570b8c65a37b ]

Decouple allocation of endpoint ring buffer from initialization
of the buffer, and initialization of endpoint context parts from
from the rest of the contexts.

It allows driver to clear up and reinitialize endpoint rings
after disconnect without reallocating everything.

This is a prerequisite for the next patch that prevents the transfer
ring from filling up with cancelled (no-op) TRBs if a debug cable is
reconnected several times without transferring anything.

Cc: stable@vger.kernel.org
Fixes: dfba2174dc42 ("usb: xhci: Add DbC support in xHCI driver")
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20250902105306.877476-2-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-dbgcap.c