]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit731a5d51c9088d18e3b7c68ed3cf1e3995fa14cc
tree8b9de353a09e14993f2daf2a4f05864236eaca9a
parentf1e90d74b4bf2f678ac3e25ead2e6903dbef228a
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