Skip to content
Commit ce957065 authored by Fengquan Chen's avatar Fengquan Chen Committed by Daniel Lezcano
Browse files

clocksource/drivers/mediatek: Optimize systimer irq clear flow on shutdown



mtk_syst_clkevt_shutdown is called after irq disabled in suspend flow,
clear any pending systimer irq when shutdown to avoid suspend aborted
due to timer irq pending

Also as for systimer in mediatek socs, there must be firstly enable
timer before clear systimer irq

Fixes: e3af6776("clocksource/drivers/timer-mediatek: Add support for system timer")
Signed-off-by: default avatarFengquan Chen <fengquan.chen@mediatek.com>
Tested-by: default avatarHsin-Yi Wang <hsinyi@chromium.org>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/1617960162-1988-2-git-send-email-Fengquan.Chen@mediatek.com
parent 3b87265d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment