]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: rockchip: disable watchdog during suspend
authorChris Zhong <zyw@rock-chips.com>
Mon, 9 Feb 2015 13:12:23 +0000 (21:12 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Wed, 11 Mar 2015 21:41:02 +0000 (22:41 +0100)
commit03fbf65bac177e6db0121f085f66c575a06e3a39
tree70c79ae52220faedf009ad84da0fe9f4062ad545
parenta2dde89111903bf685b8021361c57898a54c244c
ARM: rockchip: disable watchdog during suspend

The watchdog clock should be disable in dw_wdt_suspend, but we set a
dummy clock to watchdog for rk3288. So the watchdog will continue to
work during suspend. And we switch the system clock to 32khz from 24Mhz,
during suspend, so the watchdog timer over count will increase to
755 times, about 12.5 hours, the original value is 60 seconds. So
watchdog will reset the system over a night,  but voltage are all
incorrect, then it hang on reset.

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