]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/clocksource/mtk_timer.c
clockevents/drivers/mtk: Fix spurious interrupt leading to crash
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 24 Aug 2015 13:14:30 +0000 (15:14 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 15 Oct 2015 15:41:56 +0000 (17:41 +0200)
commitfc686d0037d782c994e338ecb01bfef8bbafff9f
tree540de88164a9cb8383566489a5a820ab58f771e0
parentc8d75aa47dd585c9538a8205e9bb9847e12cfb84
clockevents/drivers/mtk: Fix spurious interrupt leading to crash

After analysis done by Yingjoe Chen, the timer appears to have a pending
interrupt when it is enabled.

Fix this by acknowledging the pending interrupt when enabling the timer
interrupt.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Tested-by: Yingjoe Chen <yingjoe.chen@mediatek.com>
drivers/clocksource/mtk_timer.c