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)
commit57f23cd0bf2f56d339f810a913a9c0c5abfcfc7e
tree30bc16da2e412000dd11b5ae314fa876205c7a1a
parentb7a4f9b5d0e4b6dd937678c546c0b322dd1a4054
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