diff options
author | Mathias Nyman <mathias.nyman@linux.intel.com> | 2022-02-16 10:51:49 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-02-17 16:20:45 +0100 |
commit | e1ec140f273e1e30cea7e6d5f50934d877232121 (patch) | |
tree | 1962340360dabcd5dc05d5432d87228368181ffa /drivers/usb/host/xhci-dbgcap.h | |
parent | xhci: dbc: Don't call dbc_tty_init() on every dbc tty probe (diff) | |
download | linux-e1ec140f273e1e30cea7e6d5f50934d877232121.tar.xz linux-e1ec140f273e1e30cea7e6d5f50934d877232121.zip |
xhci: dbgtty: use IDR to support several dbc instances.
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>
Diffstat (limited to 'drivers/usb/host/xhci-dbgcap.h')
-rw-r--r-- | drivers/usb/host/xhci-dbgcap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-dbgcap.h b/drivers/usb/host/xhci-dbgcap.h index 5f3304a06591..ca04192fdab1 100644 --- a/drivers/usb/host/xhci-dbgcap.h +++ b/drivers/usb/host/xhci-dbgcap.h @@ -100,6 +100,7 @@ struct dbc_ep { struct dbc_port { struct tty_port port; spinlock_t port_lock; /* port access */ + int minor; struct list_head read_pool; struct list_head read_queue; |