powerpc/pseries/pci: Introduce rtas_prepare_msi_irqs()
authorCédric Le Goater <clg@kaod.org>
Thu, 1 Jul 2021 13:27:20 +0000 (15:27 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 10 Aug 2021 13:14:57 +0000 (23:14 +1000)
commite81202007363bd694b711f307f02320b5f98edaa
tree4e38d6c097d81bb809ba49562ae6fea2b9a3052d
parent786e5b102a0007d81579822eac23cb5bfaa0b65f
powerpc/pseries/pci: Introduce rtas_prepare_msi_irqs()

This splits the routine setting the MSIs in two parts: allocation of
MSIs for the PCI device at the FW level (RTAS) and the actual mapping
and activation of the IRQs.

rtas_prepare_msi_irqs() will serve as a handler for the PCI MSI domain.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210701132750.1475580-3-clg@kaod.org
arch/powerpc/platforms/pseries/msi.c