[PATCH] [v3, 1/1] clocksource/drivers/timer-mediatek: optimize systimer irq clear flow on shutdown

From: Fengquan Chen
Date: Fri Apr 09 2021 - 04:36:36 EST


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: e3af677607d9("clocksource/drivers/timer-mediatek: Add support for system timer")
Signed-off-by: Fengquan Chen <fengquan.chen@xxxxxxxxxxxx>

Fengquan Chen (1):
[v3, 1/1] clocksource/drivers/timer-mediatek: optimize systimer irq
clear flow on shutdown

drivers/clocksource/timer-mediatek.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

--
1.8.1.1.dirty