]> git.baikalelectronics.ru Git - 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)
commit8aedc19c9748387f59e5df08b6c0935aa62700b3
treea35e74ea39923f868bbcfd051c03f1868df8eeb2
parent61c6641dbbde557a55a05616fce2e3f2e021c7a8
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