ARM: rockchip: restore dapswjdp after suspend
authorDoug Anderson <dianders@chromium.org>
Wed, 20 May 2015 20:34:08 +0000 (13:34 -0700)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 5 Jul 2015 22:46:59 +0000 (00:46 +0200)
commit33939403112791866da6b64875385fa1b7d9865a
tree4dbadaf97c6b6f3c438595d7c87263fa582e62e1
parentd770e558e21961ad6cfdf0ff7df0eb5d7d4f0754
ARM: rockchip: restore dapswjdp after suspend

In the commit (0ea001d ARM: rockchip: disable dapswjdp during suspend)
we made the assumption that we didn't need to restore dapswjdp after
suspend because "the MASKROM will enable it back".

It turns out that's not a safe assumption.  In some cases (pending
interrupts) it's possible that the WFI might act as a no-op and the
MaskROM will never run.  Since we're changing the bit, we should
restore it ourselves.

Signed-off-by: Doug Anderson <dianders@chromium.org>
Reviewed-by: Chris Zhong <zyw@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm/mach-rockchip/pm.c