UPSTREAM: soc: rockchip: power-domain: allow domains only handling idle requests
authorElaine Zhang <zhangqing@rock-chips.com>
Wed, 9 Mar 2016 21:22:54 +0000 (05:22 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 29 Mar 2016 06:53:10 +0000 (14:53 +0800)
commit23a0699a572b9592075454a34e46b98153e2e4fb
treec5ecfc63bdd747cd478294943f7e7a0aaeffc41e
parent3ea83abf50615ee15bb232e342153e9605f1f6f1
UPSTREAM: soc: rockchip: power-domain: allow domains only handling idle requests

On some Rockchip SoC there exist child-domains only handling their
idle state with the actual power-state handled by a (shared) parent-
domain.

So allow such types of domains. For them, we can determine their
state (on/off) by checking the inverse idle-state instead.

There exist one special case if both idle as well power handling
were set as not present, but as the domain-data is defined in the
code itself, we can expect the reasonable developer to define them
in a correct way, without adding more checks.

Change-Id: Ic82cb387565a39043d5d52e62a94910de10d4bbd
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
(cherry picked from git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git
 v4.7-armsoc/drivers commit 1fe767a56c32730a947fc2bfcac5d14490bde6ff)
drivers/soc/rockchip/pm_domains.c