diff options
author | Rafael J. Wysocki <[email protected]> | 2017-12-15 03:07:18 +0100 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2017-12-18 12:06:07 +0100 |
commit | 5839ee7389e893a31e4e3c9cf17b50d14103c902 (patch) | |
tree | 368d4161f85d75c1839e68cd018fa5e7c22b3e6f /include/linux/fpga/fpga-bridge.h | |
parent | 1291a0d5049dbc06baaaf66a9ff3f53db493b19b (diff) |
PCI / PM: Force devices to D0 in pci_pm_thaw_noirq()
It is incorrect to call pci_restore_state() for devices in low-power
states (D1-D3), as that involves the restoration of MSI setup which
requires MMIO to be operational and that is only the case in D0.
However, pci_pm_thaw_noirq() may do that if the driver's "freeze"
callbacks put the device into a low-power state, so fix it by making
it force devices into D0 via pci_set_power_state() instead of trying
to "update" their power state which is pointless.
Fixes: e60514bd4485 (PCI/PM: Restore the status of PCI devices across hibernation)
Cc: 4.13+ <[email protected]> # 4.13+
Reported-by: Thomas Gleixner <[email protected]>
Reported-by: Maarten Lankhorst <[email protected]>
Tested-by: Thomas Gleixner <[email protected]>
Tested-by: Maarten Lankhorst <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Acked-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions