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)
commit173ffad79d177d9a91fbf3be6bf67ca81e0f765a
treeff852acdd9a5996067b67a4c44b6fe997cd45a1f
parent0f18095871fc59c89a281caf6f18538cf9e50fbf
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