]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xhci: dbgtty: use IDR to support several dbc instances.
authorMathias Nyman <mathias.nyman@linux.intel.com>
Mon, 8 Dec 2025 06:54:22 +0000 (01:54 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 12:10:05 +0000 (13:10 +0100)
commit4b4315ab4a141e79858dc3bdaa665f1e0af57fdb
treeeea9017bf84649079a3a1ee7fb7287b84eb72a9c
parenteee16f3ff08e759ea828bdf7dc1c0ef2f22134f5
xhci: dbgtty: use IDR to support several dbc instances.

[ Upstream commit e1ec140f273e1e30cea7e6d5f50934d877232121 ]

To support systems with several xhci controllers with active
dbc on each xhci we need to use IDR to identify and give
an index to each port.

Avoid using global struct tty_driver.driver_state for storing
dbc port pointer as it won't work with several dbc ports

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20220216095153.1303105-6-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Stable-dep-of: 1f73b8b56cf3 ("xhci: dbgtty: fix device unregister")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-dbgcap.h
drivers/usb/host/xhci-dbgtty.c