]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: factor out parts of xhci_gen_setup()
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 11 May 2022 22:04:42 +0000 (01:04 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 May 2022 16:30:50 +0000 (18:30 +0200)
commitf8a1da9cd108824d900c55d60d00c57586a60b38
tree30bc16da2e412000dd11b5ae314fa876205c7a1a
parent2c0225944a19b4ce62c11ca95e8b7c0a3df6bbdf
xhci: factor out parts of xhci_gen_setup()

Factoring out parts of xhci_gen_setup() has two motivations:
- When adding functionaliy to omit shared hcd if not needed in a
  subsequent patch, we'll have to call xhci_hcd_init_usb3_data()
  from two places.
- It reduces size of xhci_gen_setup() and makes it better readable.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20220511220450.85367-2-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci.c