PCI: apple: Change MSI handling to handle 4-cell AIC fwspec form
authorHector Martin <marcan@marcan.st>
Wed, 9 Mar 2022 19:21:17 +0000 (04:21 +0900)
committerMarc Zyngier <maz@kernel.org>
Thu, 10 Mar 2022 09:49:03 +0000 (09:49 +0000)
commit89eb1681b73ff584c5678f7185a2d8e3070e9b78
tree3b513d215d35fe7c810b6379e2536a7b32c1e542
parentdfd42facf1e4ada021b939b4e19c935dcdd55566
PCI: apple: Change MSI handling to handle 4-cell AIC fwspec form

AIC2 changes the IRQ fwspec to add a cell. Always use the second-to-last
cell for the MSI handling, so it will work for both AIC1 and AIC2 devices.

Signed-off-by: Hector Martin <marcan@marcan.st>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220309192123.152028-2-marcan@marcan.st
drivers/pci/controller/pcie-apple.c