linux/drivers/pci/msi
Thomas Gleixner d558285413 PCI/MSI: Unbreak pci_irq_get_affinity()
The recent cleanup of pci_irq_get_affinity() broke the function for
PCI/MSI-X and indices > 0. Only the MSI descriptor for PCI/MSI has more
than one affinity mask which can be retrieved via the MSI index.

PCI/MSI-X has one descriptor per vector and each has a single affinity
mask.

Use index 0 when accessing the affinity mask in the MSI descriptor when
MSI-X is enabled.

Fixes: f482359001 ("PCI/MSI: Simplify pci_irq_get_affinity()")
Reported-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/87v8zm9pmd.ffs@tglx
2021-12-18 20:33:21 +01:00
..
irqdomain.c PCI/MSI: Use msi_on_each_desc() 2021-12-16 22:22:18 +01:00
legacy.c PCI/MSI: Use msi_on_each_desc() 2021-12-16 22:22:18 +01:00
Makefile
msi.c PCI/MSI: Unbreak pci_irq_get_affinity() 2021-12-18 20:33:21 +01:00
msi.h
pcidev_msi.c