power: charge animation: disable timer while uninit timer

Otherwise the time is still working in kernel if there is no
one to update it, which always wakeups system suspend.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ic2291b26730557c50fb8cbd505d05b40bb582c74
This commit is contained in:
Joseph Chen 2020-12-11 15:22:34 +08:00 committed by Jianhong Chen
parent cd44409e4e
commit 094465a906
1 changed files with 3 additions and 0 deletions

View File

@ -283,6 +283,9 @@ static void autowakeup_timer_init(struct udevice *dev, uint32_t seconds)
static void autowakeup_timer_uninit(void)
{
writel(0, TIMER_BASE + TIMER_CTRL);
irq_handler_disable(TIMER_IRQ);
irq_free_handler(TIMER_IRQ);
}
#endif