summary refs log tree commit diff
path: root/drivers/ata/ahci.h
diff options
context:
space:
mode:
authorRoger Quadros <rogerq@ti.com>2014-02-22 16:53:41 +0100
committerTejun Heo <tj@kernel.org>2014-02-22 15:35:43 -0500
commite708e46edac8ab2f31e7ee991aa3c5b87638e658 (patch)
tree8b9de353a09e14993f2daf2a4f05864236eaca9a /drivers/ata/ahci.h
parent21b5faeec229d4f70a7f60a7b0b065c98198f491 (diff)
downloadlinux-e708e46edac8ab2f31e7ee991aa3c5b87638e658.tar.gz
ata: ahci_platform: runtime resume the device before use
On OMAP platforms the device needs to be runtime resumed before it can
be accessed. The OMAP HWMOD framework takes care of enabling the
module and its resources based on the device's runtime PM state.

In this patch we runtime resume during .probe() and runtime suspend
after .remove().

We also update the runtime PM state during .resume().

CC: Balaji T K <balajitk@ti.com>
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata/ahci.h')
-rw-r--r--drivers/ata/ahci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ata/ahci.h b/drivers/ata/ahci.h
index 3ab7ac9bb6a7..51af275b3388 100644
--- a/drivers/ata/ahci.h
+++ b/drivers/ata/ahci.h
@@ -324,6 +324,7 @@ struct ahci_host_priv {
 	u32 			em_loc; /* enclosure management location */
 	u32			em_buf_sz;	/* EM buffer size in byte */
 	u32			em_msg_type;	/* EM message type */
+	bool			got_runtime_pm; /* Did we do pm_runtime_get? */
 	struct clk		*clks[AHCI_MAX_CLKS]; /* Optional */
 	struct regulator	*target_pwr;	/* Optional */
 	struct phy		*phy;		/* If platform uses phy */