]> 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)
commit667ea895ad2a1b3229e85ff312089386ec7be481
tree8b9de353a09e14993f2daf2a4f05864236eaca9a
parent01f4e92eed1b50af53fd085b9b36bf20f6fb191b
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