ahci: Add functions to manage runtime PM of AHCI ports
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 18 Feb 2016 08:54:16 +0000 (10:54 +0200)
committerTejun Heo <tj@kernel.org>
Fri, 19 Feb 2016 15:52:46 +0000 (10:52 -0500)
commitbb03c640697155639b2e15e2aaa4c10f60bf0d5e
tree4da2ec9458ed24d9774ab1d89c17b3fe4b69209b
parentf1d848f9fb0896809be90a4b6ab8a97e1b6e86aa
ahci: Add functions to manage runtime PM of AHCI ports

Add new functions ahci_rpm_get_port()/ahci_rpm_put_port() that change
runtime PM status of AHCI ports. Depending if the AHCI host has runtime PM
enabled or disabled calling these may trigger runtime suspend/resume of the
host controller.

We also call these functions in appropriate places to make sure host
controller registers are available before using them.

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