]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
PCI/PM: Add needs_resume flag to avoid suspend complete optimization
authorImre Deak <imre.deak@intel.com>
Tue, 23 May 2017 19:18:17 +0000 (14:18 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 23 May 2017 19:18:17 +0000 (14:18 -0500)
commit4d071c3238987325b9e50e33051a40d1cce311cc
treea35e74ea39923f868bbcfd051c03f1868df8eeb2
parent415b6185c541dc0a21457ff307cdb61950a6eb9f
PCI/PM: Add needs_resume flag to avoid suspend complete optimization

Some drivers - like i915 - may not support the system suspend direct
complete optimization due to differences in their runtime and system
suspend sequence.  Add a flag that when set resumes the device before
calling the driver's system suspend handlers which effectively disables
the optimization.

Needed by a future patch fixing suspend/resume on i915.

Suggested by Rafael.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: stable@vger.kernel.org
drivers/pci/pci.c
include/linux/pci.h