soc: rockchip: power-domain: Fix wrong value when power up pd with writemask
authorFinley Xiao <finley.xiao@rock-chips.com>
Mon, 14 May 2018 03:29:38 +0000 (11:29 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jul 2018 09:24:51 +0000 (11:24 +0200)
commit971a55574b4789c64d43c6d34f5549c337567731
tree925e43431a3c072167c8a4f7ee79bd9d79dd77a2
parent56fbab60aa47c64898c3d18540322c317ada32ef
soc: rockchip: power-domain: Fix wrong value when power up pd with writemask

commit 9e59c5f66c624b43c766a9fe3b2430e0e976bf0e upstream.

Solve the pd could only ever turn off but never turn them on again,
if the pd registers have the writemask bits.

So far this affects the rk3328 only.

Fixes: 79bb17ce8edb ("soc: rockchip: power-domain: Support domain control in hiword-registers")
Cc: stable@vger.kernel.org
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/soc/rockchip/pm_domains.c