]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
xhci: dbc: create and remove dbc structure in dbgtty driver.
authorMathias Nyman <mathias.nyman@linux.intel.com>
Wed, 16 Feb 2022 09:51:46 +0000 (11:51 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 16 Sep 2022 08:53:29 +0000 (10:53 +0200)
commitdb68932505c8a9acc623cb60b0844a4f17f01d64
tree93fd9195e0eb4853bb47cb2fbc5dadf394967ab9
parentd08a239a32c078627499a3df7b48d74930f2747e
xhci: dbc: create and remove dbc structure in dbgtty driver.

BugLink: https://bugs.launchpad.net/bugs/1988479
[ Upstream commit 5ce036b98dd3301fc43bb06a6383ef07b6c776bc ]

Turn the dbgtty closer to a device driver by allocating the dbc
structure in its own xhci_dbc_tty_probe() function, and freeing it
in xhci_dbc_tty_remove()

Remove xhci_do_dbc_exit() as its no longer needed.

allocate and create the dbc strcuture in xhci_dbc_tty_probe()

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20220216095153.1303105-3-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: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/usb/host/xhci-dbgcap.c
drivers/usb/host/xhci-dbgcap.h
drivers/usb/host/xhci-dbgtty.c