diff options
author | Mika Westerberg <[email protected]> | 2019-10-29 20:00:21 +0300 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2019-11-12 16:27:33 -0600 |
commit | 75fcc0ce72e5cea2e357cdde858216c5bad40442 (patch) | |
tree | 59446dcdf235db6a5459eb66540f8f95a0bad13e /lib/test_fortify/write_overflow-strcpy.c | |
parent | b94ec12dfaee41bdd6a8b6d75e5715d9ba2c92cc (diff) |
PCI: pciehp: Do not disable interrupt twice on suspend
We try to keep PCIe hotplug ports runtime suspended when entering system
suspend. Because the PCIe portdrv sets the DPM_FLAG_NEVER_SKIP flag, the PM
core always calls system suspend/resume hooks even if the device is left
runtime suspended. Since PCIe hotplug driver re-used the same function for
both runtime suspend and system suspend, it ended up disabling hotplug
interrupt twice and the second time following was printed:
pciehp 0000:03:01.0:pcie204: pcie_do_write_cmd: no response from device
Prevent this from happening by checking whether the device is already
runtime suspended when the system suspend hook is called.
Fixes: 9c62f0bfb832 ("PCI: pciehp: Implement runtime PM callbacks")
Link: https://lore.kernel.org/r/[email protected]
Reported-by: Kai-Heng Feng <[email protected]>
Tested-by: Kai-Heng Feng <[email protected]>
Signed-off-by: Mika Westerberg <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strcpy.c')
0 files changed, 0 insertions, 0 deletions