ahci: Add runtime PM support for the host controller
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 18 Feb 2016 08:54:17 +0000 (10:54 +0200)
committerTejun Heo <tj@kernel.org>
Fri, 19 Feb 2016 15:52:46 +0000 (10:52 -0500)
commit02e53293eafcb19b4fabc8a2e7bbfa11b88d0e6c
tree9b1f0fd585bc416cf078647015f8b651e0d556e5
parentbb03c640697155639b2e15e2aaa4c10f60bf0d5e
ahci: Add runtime PM support for the host controller

This patch adds runtime PM support for the AHCI host controller driver so
that the host controller is powered down when all SATA ports are runtime
suspended. Powering down the AHCI host controller can reduce power
consumption and possibly allow the CPU to enter lower power idle states
(S0ix) during runtime.

Runtime PM is blocked by default and needs to be unblocked from userspace
as needed (via power/* sysfs nodes).

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/ahci.c