]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: pciehp: Do not handle events if interrupts are masked
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 27 Sep 2018 21:41:46 +0000 (16:41 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 2 Oct 2018 21:04:40 +0000 (16:04 -0500)
commit005fcc96c8a659f40724cae9690d2a69f6725fcc
tree7298b10f96ac863b7a176c2201bdf9cefa20deaa
parenta1620c71a4931ef9a7e6820a1068a2dab2c12acd
PCI: pciehp: Do not handle events if interrupts are masked

PCIe native hotplug shares MSI vector with native PME so the interrupt
handler might get called even the hotplug interrupt is masked. In that case
we should not handle any events because the interrupt was not meant for us.

Modify the PCIe hotplug interrupt handler to check this accordingly and
bail out if it finds out that the interrupt was not about hotplug.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Lukas Wunner <lukas@wunner.de>
drivers/pci/hotplug/pciehp_hpc.c