]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PM / Domains: Introduce "always on" device flag
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 26 Mar 2012 21:25:24 +0000 (23:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Apr 2012 17:32:10 +0000 (10:32 -0700)
commit166a1687a4d1ad2fa237452355a5ec018dc68cc5
tree410094f4fce8700bc3314af8e50f73be040008e1
parentfd0682d1b4f47792cfe668c7979d73f168e9f1aa
PM / Domains: Introduce "always on" device flag

This is a backport of mainline commit
1e78a0c7fc92aee076965d516cf54475c39e9894.

The TMU device on the Mackerel board belongs to the A4R power domain
and loses power when the domain is turned off.  Unfortunately, the
TMU driver is not prepared to cope with such situations and crashes
the system when that happens.  To work around this problem introduce
a new helper function, pm_genpd_dev_always_on(), allowing a device
driver to mark its device as "always on" in case it belongs to a PM
domain, which will make the generic PM domains core code avoid
powering off the domain containing the device, both at run time and
during system suspend.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Tested-by: Simon Horman <horms@verge.net.au>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/power/domain.c
include/linux/pm_domain.h