ata: ahci_platform: runtime resume the device before use
authorRoger Quadros <rogerq@ti.com>
Sat, 22 Feb 2014 15:53:41 +0000 (16:53 +0100)
committerTejun Heo <tj@kernel.org>
Sat, 22 Feb 2014 20:35:43 +0000 (15:35 -0500)
commite708e46edac8ab2f31e7ee991aa3c5b87638e658
tree8b9de353a09e14993f2daf2a4f05864236eaca9a
parent21b5faeec229d4f70a7f60a7b0b065c98198f491
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>
drivers/ata/ahci.h
drivers/ata/ahci_platform.c