aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdnsp-debug.h
diff options
context:
space:
mode:
authorNiklas Neronin <[email protected]>2023-12-01 15:06:44 +0000
committerGreg Kroah-Hartman <[email protected]>2023-12-04 06:50:40 +0000
commit9831960df237855ea3333e08c26cc9405a7ed440 (patch)
treeb4342cb8da2916f9f029b95dc1c1eb122979c495 /drivers/usb/cdns3/cdnsp-debug.h
parentxhci: change 'msix_count' to encompass MSI or MSI-X vectors (diff)
downloadkernel-9831960df237855ea3333e08c26cc9405a7ed440.tar.gz
kernel-9831960df237855ea3333e08c26cc9405a7ed440.zip
xhci: rework 'xhci_try_enable_msi()' MSI and MSI-X setup code
Simplify 'xhci_try_enable_msi()' and reduce unnecessary function calls. xHCI driver first tries to allocate 'num_online_cpu()' number of MSI-X vectors, if that fails it falls back to a single MSI vector. There is no good reason for this, we currently only support a primary interrupter. However, we are still interested in knowing if there are more vectors available, which will be utilized once we get secondary interrupter support. Call 'pci_alloc_irq_vectors()' once (with MSI-X and MSI flag), instead of separately for MSI-X and MSI. And accept any number of MSI-X or MSI vectors between 1 and 'num_online_cpu()'. Signed-off-by: Niklas Neronin <[email protected]> Signed-off-by: Mathias Nyman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdnsp-debug.h')
0 files changed, 0 insertions, 0 deletions