summaryrefslogtreecommitdiff
path: root/drivers/regulator
diff options
context:
space:
mode:
authorKeith Busch <keith.busch@intel.com>2019-05-23 09:27:35 -0600
committerChristoph Hellwig <hch@lst.de>2019-06-21 11:08:38 +0200
commitd916b1be94b6dc8d293abed2451f3062f6af7551 (patch)
treef2ea8685335294c5ea3e0e6053da188ece846117 /drivers/regulator
parent7a1f46e3f75cff5042dfa1bb80c9929a0e412abc (diff)
nvme-pci: use host managed power state for suspend
The nvme pci driver prepares its devices for power loss during suspend by shutting down the controllers. The power setting is deferred to pci driver's power management before the platform removes power. The suspend-to-idle mode, however, does not remove power. NVMe devices that implement host managed power settings can achieve lower power and better transition latencies than using generic PCI power settings. Try to use this feature if the platform is not involved with the suspend. If successful, restore the previous power state on resume. Tested-by: Kai-Heng Feng <kai.heng.feng@canonical.com> Tested-by: Mario Limonciello <mario.limonciello@dell.com> Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Keith Busch <keith.busch@intel.com> Signed-off-by: Sagi Grimberg <sagi@grimberg.me> [hch: fixed the compilation for the !CONFIG_PM_SLEEP case] Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/regulator')
0 files changed, 0 insertions, 0 deletions