Skip to contentSkip to conversation

xhci rework interrupt enabling

PATCH New Niklas Neronin 1 participant 1 message Oct 31, 2023 USB

lore
Share & tools
lore
#0 lore raw

cover xhci rework interrupt enabling

This series reworks interrupt enabling in 'xhci-pci.c'. Instead of MSI-X, MSI and legacy IRQ enabling being split over three functions, rework them into one simple function.

Niklas Neronin (7):
xhci: check if legacy irq is available before using it as fallback
xhci: add handler for only one interrupt line
xhci: refactor static MSI-X function
xhci: refactor static MSI function
xhci: change 'msix_count' to encompass MSI or MSI-X vectors
xhci: rework 'xhci_try_enable_msi()' MSI and MSI-X setup code
xhci: minor coding style cleanup in 'xhci_try_enable_msi()'

 drivers/usb/host/xhci-pci.c | 140 ++++++++++--------------------------
 drivers/usb/host/xhci.h     |   4 +-
 2 files changed, 41 insertions(+), 103 deletions(-)
Signature · 1 line
2.40.1