]> git.baikalelectronics.ru Git - kernel.git/commitdiff
powerpc/powernv/pci: Adapt is_pnv_opal_msi() to detect passthrough interrupt
authorCédric Le Goater <clg@kaod.org>
Thu, 1 Jul 2021 13:27:44 +0000 (15:27 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 10 Aug 2021 13:15:00 +0000 (23:15 +1000)
The pnv_ioda2_msi_eoi() chip handler is not used anymore for MSIs.
Simply use the check on the PSI-MSI chip.

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-27-clg@kaod.org
arch/powerpc/platforms/powernv/pci-ioda.c

index eb38ce1fd434dd9fc9335d1bd875e1bca0e07823..6c4b37598bccc257e696b356369ff17a2c71b3e8 100644 (file)
@@ -2015,7 +2015,7 @@ static struct irq_chip pnv_pci_msi_irq_chip;
  */
 bool is_pnv_opal_msi(struct irq_chip *chip)
 {
-       return chip->irq_eoi == pnv_ioda2_msi_eoi || chip == &pnv_pci_msi_irq_chip;
+       return chip == &pnv_pci_msi_irq_chip;
 }
 EXPORT_SYMBOL_GPL(is_pnv_opal_msi);