]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/MSI: Use msi_desc::msi_index
authorThomas Gleixner <tglx@linutronix.de>
Fri, 10 Dec 2021 22:19:18 +0000 (23:19 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 16 Dec 2021 21:16:40 +0000 (22:16 +0100)
commit03d6b6f23dc6de300209a5e6268bddad60920c65
treeff852acdd9a5996067b67a4c44b6fe997cd45a1f
parent1a70504073ba66ce6aa1b08f1ae80e2c8ce3e565
PCI/MSI: Use msi_desc::msi_index

The usage of msi_desc::pci::entry_nr is confusing at best. It's the index
into the MSI[X] descriptor table.

Use msi_desc::msi_index which is shared between all MSI incarnations
instead of having a PCI specific storage for no value.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Michael Kelley <mikelley@microsoft.com>
Tested-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/r/20211210221814.602911509@linutronix.de
arch/powerpc/platforms/pseries/msi.c
arch/x86/pci/xen.c
drivers/pci/msi/irqdomain.c
drivers/pci/msi/msi.c
drivers/pci/xen-pcifront.c
include/linux/msi.h