PCI: xgene-msi: Get rid of intermediate tracking structure
authorMarc Zyngier <maz@kernel.org>
Tue, 8 Jul 2025 17:33:59 +0000 (18:33 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 22 Jul 2025 20:33:16 +0000 (15:33 -0500)
commit011f4fc1e8debaf9e749c20bfabc08a180870722
treec9b13483d677ab25ca1713430270fc7dece9b86f
parentc9c1578f11af7ebfb62ff683be638ba6f7a9cb44
PCI: xgene-msi: Get rid of intermediate tracking structure

The xgene-msi driver uses an odd construct in the form of an
intermediate tracking structure, evidently designed to deal with
multiple instances of the MSI widget. However, the existing HW
only has one set, and it is obvious that there won't be new HW
coming down that particular line.

Simplify the driver by using a bit of pointer arithmetic instead,
directly tracking the interrupt and avoiding extra memory allocation.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/r/20250708173404.1278635-9-maz@kernel.org
drivers/pci/controller/pci-xgene-msi.c