PCI: aardvark: Clear all MSIs at setup
authorPali Rohár <pali@kernel.org>
Tue, 30 Nov 2021 17:29:06 +0000 (18:29 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 2 Dec 2021 09:55:49 +0000 (09:55 +0000)
commit7d8dc1f7cd007a7ce94c5b4c20d63a8b8d6d7751
treee9e08c6d27d1e2c29cf6786f55c24b1281da1b22
parent1d3e170344dff2cef8827db6c09909b78cbc11d7
PCI: aardvark: Clear all MSIs at setup

We already clear all the other interrupts (ISR0, ISR1, HOST_CTRL_INT).

Define a new macro PCIE_MSI_ALL_MASK and do the same clearing for MSIs,
to ensure that we don't start receiving spurious interrupts.

Use this new mask in advk_pcie_handle_msi();

Link: https://lore.kernel.org/r/20211130172913.9727-5-kabel@kernel.org
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Behún <kabel@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/pci-aardvark.c