s390/pci: Do not mask MSI[-X] entries on teardown
authorThomas Gleixner <tglx@linutronix.de>
Thu, 29 Jul 2021 21:51:51 +0000 (23:51 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 10 Aug 2021 09:03:29 +0000 (11:03 +0200)
commit3998527d2e3ee2bfdf710a45b7b90968ff87babc
treeb137294e5282449627e9392addb4cbfa556c5aad
parent4b41ea606e535d47636ac4f5283834e9f6c5fa53
s390/pci: Do not mask MSI[-X] entries on teardown

The PCI core already ensures that the MSI[-X] state is correct when MSI[-X]
is disabled. For MSI the reset state is all entries unmasked and for MSI-X
all vectors are masked.

S390 masks all MSI entries and masks the already masked MSI-X entries
again. Remove it and let the device in the correct state.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Niklas Schnelle <schnelle@linux.ibm.com>
Tested-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Acked-by: Niklas Schnelle <schnelle@linux.ibm.com>
Link: https://lore.kernel.org/r/20210729222542.939798136@linutronix.de
arch/s390/pci/pci_irq.c
drivers/pci/msi.c
include/linux/msi.h