]> asedeno.scripts.mit.edu Git - linux.git/commit
PCI: PM: Avoid resuming devices in D3hot during system suspend
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 6 Jun 2019 22:30:58 +0000 (00:30 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 17 Jun 2019 10:30:24 +0000 (12:30 +0200)
commit234f223d63d8f7db64a682ccf02871d40d38db52
tree7f9e751c2c238aeedd3fab8ae448dc889f5803e7
parent9e0babf2c06c73cda2c0cd37a1653d823adb40ec
PCI: PM: Avoid resuming devices in D3hot during system suspend

The current code resumes devices in D3hot during system suspend if
the target power state for them is D3cold, but that is not necessary
in general.  It only is necessary to do that if the platform firmware
requires the device to be resumed, but that should be covered by
the platform_pci_need_resume() check anyway, so rework
pci_dev_keep_suspended() to avoid returning 'false' for devices
in D3hot which need not be resumed due to platform firmware
requirements.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/pci/pci.c