PCI: pciehp: Ignore interrupts during D3cold
authorLukas Wunner <lukas@wunner.de>
Fri, 13 May 2016 11:15:31 +0000 (13:15 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 20 Jun 2016 18:58:36 +0000 (13:58 -0500)
commited91de7e14fb20b7db9981ab2a34f6d114bf50a0
treeae42493c24d294084d3945591cf2f2b230bd5c43
parent224abb67e6eb5ac062de9239163136d5ec3155c8
PCI: pciehp: Ignore interrupts during D3cold

If a hotplug port is suspended to D3cold, its slot status register cannot
be read.  If that hotplug port happens to share its IRQ with other devices,
whenever an interrupt occurs for one of these devices, pciehp logs a
"no response from device" message and tries to read the PCI_EXP_SLTSTA
register, even though we know that will fail.

Ignore interrupts while we're in D3cold.

[bhelgaas: changelog]
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/hotplug/pciehp_hpc.c